delete spam classification model when the user is removed from group

This commit is contained in:
abp 2025-11-18 15:26:22 +01:00 committed by das
parent e59eaddc5c
commit 858d7e1e71

View file

@ -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) {