feat: listen to user life cycle events

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-08-09 22:41:17 -04:00
parent e48c6c9bb6
commit d45d54951e
5 changed files with 117 additions and 0 deletions
+10
View File
@@ -796,4 +796,14 @@ class MetaStore {
}
}
/**
* Delete every chronicle entry owned by a user.
*/
public function chronicleExpungeByUser(string $tenantId, string $userId): void {
$this->_store->selectCollection($this->_ChronicleTable)->deleteMany([
'tid' => $tenantId,
'uid' => $userId,
]);
}
}