Skip to content

Commit

Permalink
Add new API and chat handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed Mar 20, 2024
1 parent 1b7e96c commit 1dfdc6a
Show file tree
Hide file tree
Showing 9 changed files with 768 additions and 27 deletions.
5 changes: 3 additions & 2 deletions server/src/handlers/api/v1/bot/bot/api.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const addNewSourceByIdBulkHandler = async (

if (isOk.length > 0) {
return reply.status(400).send({
message: isOk,
message: isOk.join(", ")
});
}

Expand Down Expand Up @@ -197,7 +197,8 @@ export const addNewSourceByIdBulkHandler = async (
await request.server.queue.add(queueSource);

return {
id: bot.id,
success: true,
source_ids: queueSource.map((source) => source.id),
};
} catch (error) {
console.log(error);
Expand Down
Loading

0 comments on commit 1dfdc6a

Please sign in to comment.