@thzero/library_server 0.15.27 → 0.15.30

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@thzero/library_server",
3
3
  "type": "module",
4
- "version": "0.15.27",
4
+ "version": "0.15.30",
5
5
  "version_major": 0,
6
6
  "version_minor": 15,
7
- "version_patch": 27,
7
+ "version_patch": 30,
8
8
  "version_date": "04/16/2022",
9
9
  "description": "An opinionated library of common functionality to bootstrap a Koa based API application using MongoDb and Firebase.",
10
10
  "author": "thZero",
@@ -105,8 +105,8 @@ class AdminBaseRoute extends BaseRoute {
105
105
  async (ctx, next) => {
106
106
  // const service = this._injector.getService(this._options.serviceKey);
107
107
  // const response = (await service.search(ctx.correlationId, ctx.state.user, ctx.request.body)).check(ctx);
108
- const response = (await ctx.router.service.update(ctx.correlationId, ctx.state.user, ctx.params.id, ctx.request.body)).check(ctx);
109
- tthis._jsonResponse(ctx, Utility.stringify(response));
108
+ const response = (await ctx.router.service.search(ctx.correlationId, ctx.state.user, ctx.request.body)).check(ctx);
109
+ this._jsonResponse(ctx, Utility.stringify(response));
110
110
  }
111
111
  );
112
112
 
@@ -78,8 +78,8 @@ class BaseUsersRoute extends BaseRoute {
78
78
  // eslint-disable-next-line
79
79
  async (ctx, next) => {
80
80
  // const service = this._injector.getService(LibraryConstants.InjectorKeys.SERVICE_USERS);
81
- const response = (await service.refreshSettings(ctx.correlationId, ctx.request.body)).check(ctx);
82
- // const response = (await ctx.router.serviceUsers.refreshSettings(ctx.correlationId, ctx.request.body)).check(ctx);
81
+ // const response = (await service.refreshSettings(ctx.correlationId, ctx.request.body)).check(ctx);
82
+ const response = (await ctx.router.serviceUsers.refreshSettings(ctx.correlationId, ctx.request.body)).check(ctx);
83
83
  this._jsonResponse(ctx, Utility.stringify(response));
84
84
  }
85
85
  );