autosync_backend2 1.1.56 → 1.1.58
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/dist/index.d.ts +4 -0
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -146211,8 +146211,12 @@ var CrmInspectionLogic;
|
|
146211
146211
|
const baseQuery = db_default.select({
|
146212
146212
|
inspection: crmInspectionTable,
|
146213
146213
|
vehicle: crmVehicleTable,
|
146214
|
-
totalCount: totalCountSql
|
146215
|
-
|
146214
|
+
totalCount: totalCountSql,
|
146215
|
+
employee: {
|
146216
|
+
firstname: companyEmployeeTable.firstname,
|
146217
|
+
name: companyCompanyTable.name
|
146218
|
+
}
|
146219
|
+
}).from(crmInspectionTable).where(CrmInspectionLogic.getFilter(query, user2)).orderBy(desc(crmInspectionTable.createdAt)).innerJoin(crmVehicleTable, eq(crmInspectionTable.vehicleId, crmVehicleTable.id)).leftJoin(companyEmployeeTable, eq(crmInspectionTable.employeeId, companyEmployeeTable.id)).$dynamic();
|
146216
146220
|
const result = await pagination_helper_default(baseQuery, query.pagination);
|
146217
146221
|
const content = {
|
146218
146222
|
totalCount: result[0]?.totalCount ?? 0,
|