Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 8, 2024
1 parent fe6ea9a commit 61c57be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/bot/mtproto-api/workrooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export async function createChat(context: Context<"issues.labeled", SupportedEve
})
);

console.log("Chat created: ", chat);

// await context.adapters.supabase.chats.saveChat(chatId, payload.issue.title, payload.issue.node_id);

return { status: 200, reason: "chat_created" };
Expand Down
4 changes: 0 additions & 4 deletions src/handlers/callbacks-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,10 @@ export function proxyWorkflowCallbacks(context: Context): ProxyCallbacks {
return (async () => {
try {
await Promise.all(target[prop].map((callback) => handleCallback(callback, context)));
console.log("Finished workflow callback");
} catch (er) {
context.logger.error(`Failed to handle event ${prop}`, { er });
await exit(1);
}

console.log("Exiting workflow callback");
await exit(0);
})();
},
Expand Down Expand Up @@ -131,6 +128,5 @@ function handleCallback(callback: Function, context: Context) {
* 1 - Failure
*/
async function exit(status: number = 0) {
console.log("Exiting with status: ", status);
process.exit(status);
}

0 comments on commit 61c57be

Please sign in to comment.