mirror of
https://github.com/zoriya/flood.git
synced 2026-06-08 12:42:41 +00:00
server: drop databases before removing user
This commit is contained in:
@@ -46,6 +46,14 @@ class NotificationService extends BaseService<NotificationServiceEvents> {
|
||||
})();
|
||||
}
|
||||
|
||||
async destroy(drop: boolean) {
|
||||
if (drop) {
|
||||
await this.db.dropDatabaseAsync();
|
||||
}
|
||||
|
||||
return super.destroy(drop);
|
||||
}
|
||||
|
||||
emitUpdate = () => {
|
||||
this.emit('NOTIFICATION_COUNT_CHANGE', {
|
||||
id: Date.now(),
|
||||
|
||||
Reference in New Issue
Block a user