persistence: DeleteTenant чистит и tenant_ak (отзыв access key)

This commit is contained in:
Repinoid
2026-10-11 08:27:22 +03:00
parent 09fe0f7e66
commit 9e0ad2c0a4
2 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -183,8 +183,8 @@ func (s *TenantStore) Delete(id string) bool {
}
s.mu.Unlock()
// Удаляем из Redis асинхронно
persistence.DeleteTenant(id)
// Удаляем из Redis асинхронно (оба индекса: по id и по accessKey)
persistence.DeleteTenant(id, t.AccessKey)
return true
}