Updates
This commit is contained in:
+2
-2
@@ -148,7 +148,7 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
|
||||
else if ((_a = genObject === null || genObject === void 0 ? void 0 : genObject.selectFields) === null || _a === void 0 ? void 0 : _a[0]) {
|
||||
if (genObject.join) {
|
||||
str += ` ${(_b = genObject.selectFields) === null || _b === void 0 ? void 0 : _b.map((fld) => typeof fld == "object"
|
||||
? `${finalDbName}${tableName}.${fld.fieldName}` +
|
||||
? `${finalDbName}${tableName}.${fld.fieldName.toString()}` +
|
||||
fld.alias
|
||||
? ` as ${fld.alias}`
|
||||
: ``
|
||||
@@ -156,7 +156,7 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
|
||||
}
|
||||
else {
|
||||
str += ` ${(_c = genObject.selectFields) === null || _c === void 0 ? void 0 : _c.map((fld) => typeof fld == "object"
|
||||
? `${fld.fieldName}` + fld.alias
|
||||
? `${fld.fieldName.toString()}` + fld.alias
|
||||
? ` as ${fld.alias}`
|
||||
: ``
|
||||
: fld).join(",")}`;
|
||||
|
||||
Vendored
+1
-1
@@ -810,7 +810,7 @@ export type ServerQueryParam<T extends {
|
||||
} = {
|
||||
[k: string]: any;
|
||||
}, K extends string = string> = {
|
||||
selectFields?: (keyof T | TableSelectFieldsObject)[];
|
||||
selectFields?: (keyof T | TableSelectFieldsObject<T>)[];
|
||||
omitFields?: (keyof T)[];
|
||||
query?: ServerQueryQueryObject<T>;
|
||||
limit?: number;
|
||||
|
||||
Reference in New Issue
Block a user