@clairejs/server 3.28.10 → 3.28.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/README.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.28.12
4
+
5
+ - fix CrudHttpController deleteMany does not return correct fields
6
+
7
+ #### 3.28.11
8
+
9
+ - fix LocalJobScheduler publish & subscribe issue
10
+
3
11
  #### 3.28.10
4
12
 
5
13
  - allow email service to send attachments
@@ -229,9 +229,7 @@ export class CrudHttpController extends AbstractHttpController {
229
229
  async deleteMany(req) {
230
230
  const tx = await this.getCurrentTransaction();
231
231
  const result = await this.crudRepository.deleteMany({ queries: req.getQuery(), tx });
232
- return ResponseBuilder.json({
233
- modified: result.modified.map((instance) => instance.id).map((id) => ({ id })),
234
- }).get();
232
+ return ResponseBuilder.json(result).get();
235
233
  }
236
234
  }
237
235
  __decorate([
@@ -63,7 +63,7 @@ let LocalJobScheduler = class LocalJobScheduler extends AbstractJobScheduler {
63
63
  this.keyRetentionDurationSeconds = keyRetentionDurationSeconds;
64
64
  }
65
65
  sendJob(type, data) {
66
- this.subscribeClient.publish(this.multiClientChannel, JSON.stringify({ type, data }));
66
+ this.redisClient.publish(this.multiClientChannel, JSON.stringify({ type, data }));
67
67
  }
68
68
  async processMessage(type, data) {
69
69
  if (!this.isActive) {
@@ -110,7 +110,7 @@ let LocalJobScheduler = class LocalJobScheduler extends AbstractJobScheduler {
110
110
  this.logger.debug("LocalJobScheduler init");
111
111
  //-- subscribe to multi client channel
112
112
  this.logger.debug("Listening on multi client channel");
113
- this.redisClient.on("message", (channel, message) => {
113
+ this.subscribeClient.on("message", (channel, message) => {
114
114
  if (channel === this.multiClientChannel) {
115
115
  //-- process message
116
116
  const payload = JSON.parse(message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.28.10",
3
+ "version": "3.28.12",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",