forked from Yara724/api
update some important issues
This commit is contained in:
@@ -29,6 +29,16 @@ export class ClaimCaseDbService {
|
||||
return this.claimCaseModel.findByIdAndUpdate(id, update, { new: true });
|
||||
}
|
||||
|
||||
async findOneAndUpdate(
|
||||
filter: FilterQuery<ClaimCase>,
|
||||
update: any,
|
||||
options?: { new?: boolean },
|
||||
): Promise<ClaimCaseDocument | null> {
|
||||
return this.claimCaseModel.findOneAndUpdate(filter, update, {
|
||||
new: options?.new !== false,
|
||||
});
|
||||
}
|
||||
|
||||
async find(
|
||||
filter: FilterQuery<ClaimCase>,
|
||||
options?: { lean?: boolean; select?: string },
|
||||
|
||||
Reference in New Issue
Block a user