File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,8 @@ const updateUser = async (
308
308
"tgAccount"
309
309
` ;
310
310
311
+ console . log ( values . filter ( ( el ) => ! ! el ) ) ;
312
+
311
313
const insertUser = await db . query (
312
314
query ,
313
315
values . filter ( ( el ) => ! ! el )
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ const getSetString = (body: any) => {
16
16
return false ;
17
17
}
18
18
19
+ if ( key === 'tgAccount' && ! body [ key ] ) {
20
+ return false ;
21
+ }
22
+
19
23
if (
20
24
( key === 'percentFromJob' ||
21
25
key === 'percentFromParts' ||
@@ -34,6 +38,8 @@ const getSetString = (body: any) => {
34
38
queryStr += ', "updatedDate" = NOW() ' ;
35
39
queryStr += `WHERE id = $${ ( counter += 1 ) } ` ;
36
40
41
+ console . log ( queryStr ) ;
42
+
37
43
return queryStr ;
38
44
} ;
39
45
You can’t perform that action at this time.
0 commit comments