From cf65b361573979a0ef2350d683183f00175d196e Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Wed, 4 Aug 2021 15:47:01 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Refactoring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/api.service.ts | 2 +- services/import.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/api.service.ts b/services/api.service.ts index ca5649a..ee22627 100644 --- a/services/api.service.ts +++ b/services/api.service.ts @@ -104,7 +104,7 @@ export default class ApiService extends Service { this.logger.info("Client connected via websocket!"); client.on( - "importComicsInDB", + "importComicsToDB", async ({ action, params, opts }, done) => { this.logger.info( "Received request from client! Action:", diff --git a/services/import.service.ts b/services/import.service.ts index fcc8e59..8f74a84 100644 --- a/services/import.service.ts +++ b/services/import.service.ts @@ -74,8 +74,8 @@ export default class ProductsService extends Service { }); }, }, - getRecentlyImportedComicBooks: { - rest: "POST /getRecentlyImportedComicBooks", + getComicBooks: { + rest: "POST /getComicBooks", params: {}, async handler( ctx: Context<{ paginationOptions: object }>