@ccci/micro-server 1.0.186 → 1.0.188
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -303281,6 +303281,7 @@ class ServeKafka {
|
|
|
303281
303281
|
}
|
|
303282
303282
|
} catch (error) {
|
|
303283
303283
|
console.error("Error reading consumer files:", error);
|
|
303284
|
+
Logger.error(error);
|
|
303284
303285
|
}
|
|
303285
303286
|
}
|
|
303286
303287
|
async startProducers() {
|
|
@@ -303304,6 +303305,7 @@ class ServeKafka {
|
|
|
303304
303305
|
}
|
|
303305
303306
|
} catch (error) {
|
|
303306
303307
|
console.error("Error reading producer files:", error);
|
|
303308
|
+
Logger.error(error);
|
|
303307
303309
|
}
|
|
303308
303310
|
}
|
|
303309
303311
|
}
|
|
@@ -303336,9 +303338,15 @@ class ApplicationServer {
|
|
|
303336
303338
|
await Uploader.init(options);
|
|
303337
303339
|
}
|
|
303338
303340
|
if (options?.enableKafka) {
|
|
303341
|
+
Logger.info(`Kafka initializing...
|
|
303342
|
+
`);
|
|
303339
303343
|
const config = { clientId: options.clientId, brokers: options.brokers ?? [] };
|
|
303340
303344
|
const serveKafka = new ServeKafka(config);
|
|
303345
|
+
Logger.info(`consumers initializing...
|
|
303346
|
+
`);
|
|
303341
303347
|
await serveKafka.startConsumers();
|
|
303348
|
+
Logger.info(`producers initializing...
|
|
303349
|
+
`);
|
|
303342
303350
|
await serveKafka.startProducers();
|
|
303343
303351
|
}
|
|
303344
303352
|
if (options?.enableS3) {
|
|
@@ -303817,7 +303825,7 @@ class BaseController {
|
|
|
303817
303825
|
data.updatedById = (req.user || {}).id || null;
|
|
303818
303826
|
}
|
|
303819
303827
|
let originalData = await this._model?.findByPk(data.id);
|
|
303820
|
-
let response = await this._model?.update(data, { where: req.params, returning: true });
|
|
303828
|
+
let response = await this._model?.update(data, { where: req.params, returning: true, individualHooks: true });
|
|
303821
303829
|
let result = response && response[1] ? response[1] : undefined;
|
|
303822
303830
|
await this.afterUpdate(req, result, originalData);
|
|
303823
303831
|
return ResponseHelper(response);
|