📝 Refactoring
This commit is contained in:
@@ -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:",
|
||||||
|
|||||||
@@ -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 }>
|
||||||
|
|||||||
Reference in New Issue
Block a user