diff --git a/backend/src/schemas/user.schema.ts b/backend/src/schemas/user.schema.ts index 2b0cd89..172eaba 100644 --- a/backend/src/schemas/user.schema.ts +++ b/backend/src/schemas/user.schema.ts @@ -24,6 +24,3 @@ export class User extends mongoose.Document { export const UserSchema = SchemaFactory.createForClass(User); -UserSchema.statics.findById = function (id: string) { - return this.findOne({ _id: new MongooseSchema.Types.ObjectId(id) }); -}; \ No newline at end of file