gemcap-be-common 1.4.24 → 1.4.25
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/db/user-logs.db.js
CHANGED
|
@@ -24,7 +24,13 @@ const createLog = async (params) => {
|
|
|
24
24
|
recordId: params.recordId,
|
|
25
25
|
recordCollection: params.recordCollection,
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
try {
|
|
28
|
+
await newUserLog.save();
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
console.error(`incorrect log`, newUserLog, e);
|
|
32
|
+
throw e;
|
|
33
|
+
}
|
|
28
34
|
};
|
|
29
35
|
exports.createLog = createLog;
|
|
30
36
|
const getLogChanges = (obj1, obj2) => {
|
package/db/user-logs.db.ts
CHANGED
|
@@ -33,7 +33,12 @@ export const createLog = async (params: ICreateLogParams) => {
|
|
|
33
33
|
recordId: params.recordId,
|
|
34
34
|
recordCollection: params.recordCollection,
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
try {
|
|
37
|
+
await newUserLog.save();
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error(`incorrect log`, newUserLog, e );
|
|
40
|
+
throw e;
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
export const getLogChanges = (obj1: Object, obj2: Object) => {
|
package/models/_index.d.ts
CHANGED
|
@@ -31,10 +31,10 @@ export declare const allSchemas: {
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
} & {
|
|
34
|
-
|
|
34
|
+
amount: number;
|
|
35
35
|
order: number;
|
|
36
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
36
37
|
apDate: Date;
|
|
37
|
-
amount: number;
|
|
38
38
|
__v?: number;
|
|
39
39
|
poNumber?: string;
|
|
40
40
|
customerName?: string;
|
|
@@ -45,10 +45,10 @@ export declare const allSchemas: {
|
|
|
45
45
|
createdAt: NativeDate;
|
|
46
46
|
updatedAt: NativeDate;
|
|
47
47
|
} & {
|
|
48
|
-
|
|
48
|
+
amount: number;
|
|
49
49
|
order: number;
|
|
50
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
50
51
|
apDate: Date;
|
|
51
|
-
amount: number;
|
|
52
52
|
__v?: number;
|
|
53
53
|
poNumber?: string;
|
|
54
54
|
customerName?: string;
|
|
@@ -59,10 +59,10 @@ export declare const allSchemas: {
|
|
|
59
59
|
createdAt: NativeDate;
|
|
60
60
|
updatedAt: NativeDate;
|
|
61
61
|
} & {
|
|
62
|
-
|
|
62
|
+
amount: number;
|
|
63
63
|
order: number;
|
|
64
|
+
bbcSheetId: import("mongoose").Types.ObjectId;
|
|
64
65
|
apDate: Date;
|
|
65
|
-
amount: number;
|
|
66
66
|
__v?: number;
|
|
67
67
|
poNumber?: string;
|
|
68
68
|
customerName?: string;
|
package/package.json
CHANGED