This commit is contained in:
SepehrYahyaee
2026-01-19 17:48:06 +03:30
parent 245f98b577
commit d9509c5df5
4 changed files with 56 additions and 1 deletions

View File

@@ -17,4 +17,8 @@ export class InsurerExpertDbService {
async findOne(filter: FilterQuery<InsurerExpertModel>) {
return await this.insurerExpert.findOne(filter);
}
async updateOne(filter: any, update: any) {
return this.insurerExpert.updateOne(filter, update);
}
}

View File

@@ -26,6 +26,21 @@ export class InsurerExpertModel {
@Prop()
clientKey: Types.ObjectId;
@Prop()
phone?: string;
@Prop()
mobile?: string;
@Prop()
city?: string;
@Prop()
state?: string;
@Prop()
address?: string;
createdAt: Date;
}
export const InsurerExpertDbSchema =