Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mhirii committed Aug 3, 2023
1 parent 27643cc commit 354ea8d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/src/schemas/user.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) });
};

0 comments on commit 354ea8d

Please sign in to comment.