Support Ticket Details
Ticket Number: ID1709681894593
Date Submitted: 3/5/2024
Ticket Status (open/closed/working): Closed
Ticket Type: Site Technical Issue
P1 - Urgent
Site Version: V1.41
Submitter: Mark Hennebger
Email:
Screenshots Attached:
none
Documents Attached:
none
Why submitted:
If user hits back after typing validation code, validation collection entries get made again creating duplicates.
Mod backend code to check for already being verified member before running code make verified.
This should be a priority item
Recommended Action:
Fixed in Version 1.42 Following function added to backend to securely clean up data base after verification : // clean up function to eliminate duplicate entries in the VM DB async function cleanupDuplicateVerifiedMembers(userId) { try { const results = await wixData.query("VerifiedMembers") .eq("memberId", userId) .find(); // Check if more than one entry exists for the user if (results.items.length > 1) { console.log(`Cleaning up duplicates for user ${userId}. Total found: ${results.items.length}`); // Iterate through all items except the first one and delete them for (let i = 1; i
Resolution