Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 11, 2024
1 parent 9095add commit a1bb81f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/adapters/supabase/helpers/chats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export class Chats extends Super {
}

async userSnapshot(chatId: number, userIds: number[]) {
const { error } = await this.supabase.from("chats").upsert({ chatId, userIds })
const chat = await this.getChatByChatId(chatId);
const { error } = await this.supabase.from("chats").upsert({ ...chat, userIds })
if (error) {
this.context.logger.error("Failed to save chat users", { chatId, userIds, er: error });
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/bot/mtproto-api/workrooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function isPriceLabelChange(label: string): boolean {

export async function createChat(context: Context<"issues.labeled", SupportedEvents["issues.labeled"]>): Promise<CallbackResult> {
const { payload, config, logger } = context;
const chatName = payload.repository.full_name + "#" + payload.issue.number;
const chatName = "@" + payload.repository.full_name + "#" + payload.issue.number;

const labelName = payload.label?.name;

Expand Down

0 comments on commit a1bb81f

Please sign in to comment.