@cadenza.io/service 1.9.10 → 1.9.12
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.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2447,6 +2447,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
2447
2447
|
"Generate tasks",
|
|
2448
2448
|
(ctx) => {
|
|
2449
2449
|
const { table, tableName, options } = ctx;
|
|
2450
|
+
console.log(tableName, options);
|
|
2450
2451
|
this.createDatabaseTask(
|
|
2451
2452
|
"query",
|
|
2452
2453
|
tableName,
|
|
@@ -3053,7 +3054,6 @@ var DatabaseController = class _DatabaseController {
|
|
|
3053
3054
|
}
|
|
3054
3055
|
createDatabaseTask(op, tableName, table, queryFunction, options) {
|
|
3055
3056
|
var _a2, _b2, _c2, _d2;
|
|
3056
|
-
const defaultSignal = `${tableName}.${op}`;
|
|
3057
3057
|
CadenzaService.createTask(
|
|
3058
3058
|
`db${op.charAt(0).toUpperCase() + op.slice(1)}${tableName.charAt(0).toUpperCase() + tableName.slice(1)}`,
|
|
3059
3059
|
(context, emit) => __async(null, null, function* () {
|
|
@@ -3115,7 +3115,7 @@ var DatabaseController = class _DatabaseController {
|
|
|
3115
3115
|
...(_d2 = (_c2 = (_b2 = (_a2 = table.customSignals) == null ? void 0 : _a2.triggers) == null ? void 0 : _b2[op]) == null ? void 0 : _c2.map((signal) => {
|
|
3116
3116
|
return typeof signal === "string" ? signal : signal.signal;
|
|
3117
3117
|
})) != null ? _d2 : []
|
|
3118
|
-
)
|
|
3118
|
+
);
|
|
3119
3119
|
console.log("Created database task", op, tableName);
|
|
3120
3120
|
}
|
|
3121
3121
|
};
|
|
@@ -3392,6 +3392,7 @@ var CadenzaService = class {
|
|
|
3392
3392
|
this.bootstrap();
|
|
3393
3393
|
import_core3.default.validateName(serviceName);
|
|
3394
3394
|
this.validateServiceName(serviceName);
|
|
3395
|
+
this.serviceRegistry.serviceName = serviceName;
|
|
3395
3396
|
options = __spreadValues({
|
|
3396
3397
|
loadBalance: true,
|
|
3397
3398
|
useSocket: true,
|
|
@@ -3478,6 +3479,7 @@ var CadenzaService = class {
|
|
|
3478
3479
|
if (this.serviceCreated) return;
|
|
3479
3480
|
this.bootstrap();
|
|
3480
3481
|
DatabaseController.instance;
|
|
3482
|
+
this.serviceRegistry.serviceName = name;
|
|
3481
3483
|
options = __spreadValues({
|
|
3482
3484
|
loadBalance: true,
|
|
3483
3485
|
useSocket: true,
|