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()
|
public static function cleanupUnusedKeys()
|
||||||
{
|
{
|
||||||
self::all()->each(function ($privateKey) {
|
self::ownedByCurrentTeam()->each(function ($privateKey) {
|
||||||
$privateKey->safeDelete();
|
$privateKey->safeDelete();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user