fix: convert boxNames to List in clear function when creating transaction

This commit is contained in:
Gabby Gurdin 2024-02-22 14:28:28 -05:00 committed by Krille
parent 8987757a17
commit 4a4eb53dad
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class BoxCollection with ZoneTransactionMixin {
});
Future<void> clear() async {
final txn = _db.transaction(boxNames, 'readwrite');
final txn = _db.transaction(boxNames.toList(), 'readwrite');
for (final name in boxNames) {
unawaited(txn.objectStore(name).clear());
}