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);