mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 14:14:52 +00:00
refactor: Update PrivateKey model to use ownedByCurrentTeam() scope for cleanupUnusedKeys()
This commit is contained in:
1 parent
f9238ce263
commit
760cf8aeb5
1 file changed
+1
-1
@@ -229,7 +229,7 @@ class PrivateKey extends BaseModel
|
||||
|
||||
public static function cleanupUnusedKeys()
|
||||
{
|
||||
self::all()->each(function ($privateKey) {
|
||||
self::ownedByCurrentTeam()->each(function ($privateKey) {
|
||||
$privateKey->safeDelete();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user