core: fix problem solution vote race condition (#861)

This commit is contained in:
undefined authored and GitHub committed 2024-08-16 01:18:14 +08:00
1 parent 598972b1c9
commit 8903486c6c
6 files changed
+54 -51

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ class DataReportHandler extends Handler {
this.ctx.emit('center/report', this, installId, old, payload);
// TODO deliver messages
this.response.body = { code: 0 };
if (old.notification) this.response.body.notification = old?.notification;
if (old?.notification) this.response.body.notification = old?.notification;
}
}