Update OB11GroupIncreaseEvent.ts

This commit is contained in:
po-lan 2024-05-28 21:47:05 +08:00 committed by GitHub
parent c8351be461
commit 453060945a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import { OB11GroupNoticeEvent } from './OB11GroupNoticeEvent';
import { dbUtil } from '@/common/utils/db';
type GroupIncreaseSubType = 'approve' | 'invite';
export class OB11GroupIncreaseEvent extends OB11GroupNoticeEvent {
@ -11,5 +12,8 @@ export class OB11GroupIncreaseEvent extends OB11GroupNoticeEvent {
this.operator_id = operatorId;
this.user_id = userId;
this.sub_type = subType;
dbUtil.insertJoinTime(groupId, userId, Math.floor(Date.now() / 1000))
}
}