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 @@ private static function fingerprintExists($fingerprint, $excludeId = null)
|
|||
|
||||
public static function cleanupUnusedKeys()
|
||||
{
|
||||
self::all()->each(function ($privateKey) {
|
||||
self::ownedByCurrentTeam()->each(function ($privateKey) {
|
||||
$privateKey->safeDelete();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue