Skip to content

Commit

Permalink
feat: Added Model
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur committed Jul 25, 2024
1 parent 5c2db04 commit fbaa2d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/dal/src/repositories/user-job/user-job.schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { model, models, Schema } from 'mongoose';
import { model, models, Schema, Model } from 'mongoose';
import { schemaOptions } from '../schema-default.options';
import { UserJobEntity } from './user-job.entity';

Expand Down Expand Up @@ -43,4 +43,4 @@ interface IUserJobDocument extends UserJobEntity, Document {
_id: never;
}

export const UserJob = models.UserJob || model<IUserJobDocument>('UserJob', userJobSchema);
export const UserJob = (models.UserJob as Model<IUserJobDocument>) || model<IUserJobDocument>('UserJob', userJobSchema);

0 comments on commit fbaa2d0

Please sign in to comment.