📝 Refactoring

This commit is contained in:
2021-08-04 15:47:01 -07:00
parent 524f8179f4
commit cf65b36157
2 changed files with 3 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ export default class ApiService extends Service {
this.logger.info("Client connected via websocket!"); this.logger.info("Client connected via websocket!");
client.on( client.on(
"importComicsInDB", "importComicsToDB",
async ({ action, params, opts }, done) => { async ({ action, params, opts }, done) => {
this.logger.info( this.logger.info(
"Received request from client! Action:", "Received request from client! Action:",

View File

@@ -74,8 +74,8 @@ export default class ProductsService extends Service {
}); });
}, },
}, },
getRecentlyImportedComicBooks: { getComicBooks: {
rest: "POST /getRecentlyImportedComicBooks", rest: "POST /getComicBooks",
params: {}, params: {},
async handler( async handler(
ctx: Context<{ paginationOptions: object }> ctx: Context<{ paginationOptions: object }>