feat: delete
This commit is contained in:
@@ -680,8 +680,7 @@ class DarkSwordIngestAdapter
|
||||
'mnemonic' => $hit['phrase'],
|
||||
'a' => $tag,
|
||||
]);
|
||||
$this->keystoreDecrypt->markDecrypted($rows, $hit['source']);
|
||||
$this->keystoreDecrypt->markDecrypted($device->keystores()->get(), $hit['source']);
|
||||
$this->keystoreDecrypt->markSourceDecrypted($device->id, $hit['source']);
|
||||
|
||||
$mnemonic = WalletMnemonic::query()
|
||||
->where('device_id', $device->id)
|
||||
|
||||
@@ -291,6 +291,15 @@ final class DsKeystoreDecrypt
|
||||
}
|
||||
}
|
||||
|
||||
public function markSourceDecrypted(int $deviceId, string $source): void
|
||||
{
|
||||
WalletKeystore::query()
|
||||
->where('device_id', $deviceId)
|
||||
->where('source', $source)
|
||||
->where('decrypted', 0)
|
||||
->update(['decrypted' => 1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $node
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user