Updates
This commit is contained in:
+6
-2
@@ -40,7 +40,7 @@ function default_1(_a) {
|
||||
dbFullName,
|
||||
})
|
||||
: undefined;
|
||||
if (count && countQueryObject) {
|
||||
if ((count || countOnly) && countQueryObject) {
|
||||
connQueries.push({
|
||||
query: countQueryObject.string,
|
||||
values: countQueryObject.values,
|
||||
@@ -81,12 +81,16 @@ function default_1(_a) {
|
||||
sql: queryObject === null || queryObject === void 0 ? void 0 : queryObject.string,
|
||||
params: queryObject === null || queryObject === void 0 ? void 0 : queryObject.values,
|
||||
},
|
||||
countQueryObject: {
|
||||
sql: countQueryObject === null || countQueryObject === void 0 ? void 0 : countQueryObject.string,
|
||||
params: countQueryObject === null || countQueryObject === void 0 ? void 0 : countQueryObject.values,
|
||||
},
|
||||
count: isSuccess
|
||||
? ((_c = (_b = res[1]) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c["COUNT(*)"])
|
||||
? res[1][0]["COUNT(*)"]
|
||||
: ((_e = (_d = res[0]) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e["COUNT(*)"])
|
||||
? res[0][0]["COUNT(*)"]
|
||||
: undefined
|
||||
: 0
|
||||
: undefined,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user