Cleanup mailPasswords when oidc client is removed not only when an app is uninstalled

This commit is contained in:
Johannes Zellner
2026-02-18 17:15:06 +01:00
parent 43acecfc6e
commit 0a924b2c29
3 changed files with 12 additions and 2 deletions

View File

@@ -903,7 +903,6 @@ async function del(id) {
{ query: 'DELETE FROM appPortBindings WHERE appId = ?', args: [ id ] },
{ query: 'DELETE FROM appEnvVars WHERE appId = ?', args: [ id ] },
{ query: 'DELETE FROM appPasswords WHERE identifier = ?', args: [ id ] },
{ query: 'DELETE FROM mailPasswords WHERE appId = ?', args: [ id ] },
{ query: 'DELETE FROM appMounts WHERE appId = ?', args: [ id ] },
{ query: `UPDATE backupSites SET contentsJson = JSON_REMOVE(contentsJson, JSON_UNQUOTE(JSON_SEARCH(contentsJson, 'one', ?, NULL, '$.*[*]'))) WHERE contentsJson LIKE ${mysql.escape('%"' + id + '"%')}`, args: [ id ] },
{ query: 'DELETE FROM apps WHERE id = ?', args: [ id ] }