feat: delete

This commit is contained in:
hashbro
2026-09-01 06:31:01 +08:00
parent 5370e3700f
commit bc6ed0f5c7
2 changed files with 10 additions and 2 deletions
+1 -2
View File
@@ -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)
+9
View File
@@ -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
*/