修复关闭通知

This commit is contained in:
hanhh
2021-09-18 02:09:06 +08:00
parent 0a9e9e972d
commit 6c87634bb3
5 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ export default class AuthService {
return new Promise((resolve) => {
this.authDb.update(
{ type: AuthDataType.notification },
payload,
{ ...payload },
{ upsert: true, returnUpdatedDocs: true },
(err, num, doc: any) => {
if (err) {
+1
View File
@@ -60,6 +60,7 @@ export default class NotificationService {
const notificationModeAction = this.modeMap.get(type);
return await notificationModeAction?.call(this);
}
return true;
}
private async goCqHttpBot() {