mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-07 13:49:47 +00:00
delete spam classification model when the user is removed from group
This commit is contained in:
parent
e59eaddc5c
commit
858d7e1e71
1 changed files with 5 additions and 0 deletions
|
|
@ -837,6 +837,11 @@ export class OfflineStorage implements CacheStorage {
|
|||
WHERE groupId = ${owner}`
|
||||
await this.sqlCipherFacade.run(query, params)
|
||||
}
|
||||
{
|
||||
const { query, params } = sql`DELETE FROM spam_classification_model
|
||||
WHERE ownerGroup = ${owner}`
|
||||
await this.sqlCipherFacade.run(query, params)
|
||||
}
|
||||
}
|
||||
|
||||
private async deleteAllBlobElementTypesOwnedBy(owner: Id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue