Skip to content

Commit

Permalink
chore: use storage octo
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Oct 4, 2024
1 parent 3ae866a commit c611a2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/bot/mtproto-api/workrooms/create-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export async function createChat(context: Context<"issues.labeled", SupportedEve

if ("link" in inviteLink) {
link = inviteLink.link;
await addCommentToIssue(context, `A new workroom has been created for this task. [Join chat](${link})`, owner, repo, payload.issue.number);
await addCommentToIssue({
...context,
octokit: await context.adapters.github.getStorageOctokit(),
}, `A new workroom has been created for this task. [Join chat](${link})`, owner, repo, payload.issue.number);
} else {
throw new Error(logger.error(`Failed to create chat invite link for the workroom: ${chatName}`).logMessage.raw);
}
Expand Down
1 change: 0 additions & 1 deletion src/types/plugin-context-single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export class PluginContext {
env: this.env,
logger: new Logs("verbose"),
} as Context;

return {
...ctx,
adapters: createAdapters(ctx),
Expand Down

0 comments on commit c611a2e

Please sign in to comment.