@thzero/library_server 0.15.27 → 0.15.28

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.28",
5
5
  "version_major": 0,
6
6
  "version_minor": 15,
7
- "version_patch": 27,
7
+ "version_patch": 28,
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,7 +105,7 @@ 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);
108
+ const response = (await ctx.router.service.search(ctx.correlationId, ctx.state.user, ctx.request.body)).check(ctx);
109
109
  tthis._jsonResponse(ctx, Utility.stringify(response));
110
110
  }
111
111
  );