1
0
forked from Yara724/api

Fixed mismatched userId on field expert for claim

This commit is contained in:
SepehrYahyaee
2026-06-20 11:53:18 +03:30
parent d355771518
commit 5a89a0ff16
26 changed files with 144 additions and 414 deletions

View File

@@ -8,17 +8,14 @@ export class Otp {
@Prop()
hash: string;
@Prop()
salt: string;
@Prop()
expiresAt: Date;
@Prop({ default: 0 })
attempts: number;
attempts?: number;
@Prop({ default: Date.now })
generatedAt: Date;
generatedAt?: Date;
}
export const OtpSchema = SchemaFactory.createForClass(Otp);