mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
refactor: Update PrivateKey model to use ownedByCurrentTeam() scope for cleanupUnusedKeys()
This commit is contained in:
parent
f9238ce263
commit
760cf8aeb5
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ class PrivateKey extends BaseModel
|
|||
|
||||
public static function cleanupUnusedKeys()
|
||||
{
|
||||
self::all()->each(function ($privateKey) {
|
||||
self::ownedByCurrentTeam()->each(function ($privateKey) {
|
||||
$privateKey->safeDelete();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue