Skip to content

Commit eca6388

Browse files
committed
fix(service/db/group): "Removed welcome_message and description fields, added isSpamTime and warnings fields to GroupSettingsService
1 parent 0441fe9 commit eca6388

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/service/db/group/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ export class GroupSettingsService extends DatabaseService {
3030
const group = await this.create({
3131
group_id: chat.id,
3232
group_name: chat.title,
33-
welcome_message: "",
3433
chat_permissions: (await ctx.api.getChat(chat.id)).permissions,
3534
rules: "",
36-
description: "",
3735
black_list: bl,
3836
added_by_id: from?.id,
3937
approvedUsers: [],
40-
members: [],
38+
isSpamTime:false,
39+
warnings:[]
4140
});
4241
return await this.groupSettingsRepo.save(group);
4342
}

0 commit comments

Comments
 (0)