mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
refactor: Update PrivateKey model to use ownedByCurrentTeam() scope for cleanupUnusedKeys()
This commit is contained in:
@@ -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