gemcap-be-common 1.4.78 → 1.4.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/helpers/main.helper.ts
CHANGED
|
@@ -36,7 +36,7 @@ export const removeFields = <T>(document: mongoose.Document, fieldsToUnset: stri
|
|
|
36
36
|
return document.toObject({
|
|
37
37
|
transform: (_doc, ret) => {
|
|
38
38
|
fieldsToUnset.forEach((field) => delete ret[field]);
|
|
39
|
-
return deepCloneAndConvertMaps(ret) as Omit<T, keyof T>;
|
|
39
|
+
return deepCloneAndConvertMaps(ret) as unknown as Omit<T, keyof T>;
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
};
|
|
@@ -41,7 +41,7 @@ export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
|
|
|
41
41
|
createdAt: Date;
|
|
42
42
|
updatedAt: Date;
|
|
43
43
|
}
|
|
44
|
-
export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId'> {
|
|
44
|
+
export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments'> {
|
|
45
45
|
borrowerId: string;
|
|
46
46
|
}
|
|
47
47
|
export interface IBorrowerNoteLean extends IBorrowerNote {
|
|
@@ -23,7 +23,7 @@ export interface IBorrowerNoteDoc extends IBorrowerNote, Document {
|
|
|
23
23
|
updatedAt: Date;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId'> {
|
|
26
|
+
export interface IBorrowerNoteCreate extends Omit<IBorrowerNote, '_id' | 'borrowerId' | 'attachments'> {
|
|
27
27
|
borrowerId: string;
|
|
28
28
|
}
|
|
29
29
|
|