From 8fa0ee16aef105378ed08ae41935e8dc5bbd3ae6 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Mon, 23 Jun 2025 14:42:30 -0400 Subject: [PATCH] fix: remove unique constraint from 6 digit email code --- src/models/pnid.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/models/pnid.ts b/src/models/pnid.ts index d3f4bd8..28124b7 100644 --- a/src/models/pnid.ts +++ b/src/models/pnid.ts @@ -90,10 +90,7 @@ const PNIDSchema = new Schema({ }, devices: [DeviceSchema], identification: { // * user identification tokens - email_code: { - type: String, - unique: true - }, + email_code: String, email_token: { type: String, unique: true @@ -290,4 +287,4 @@ PNIDSchema.method('clearPermission', function clearPermission(flag: PNIDPermissi this.permissions &= ~flag; }); -export const PNID = model('PNID', PNIDSchema); +export const PNID = model('PNID', PNIDSchema);