wrap isar.clear() in isar.writeTxn() to avoid error (#1669)

This commit is contained in:
Vishnu Mohandas 2024-01-20 15:45:00 +05:30 committed by GitHub
commit 4bac11e81a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ class EmbeddingsDB {
}
Future<void> clearTable() async {
await _isar.clear();
await _isar.writeTxn(() => _isar.clear());
}
Future<List<Embedding>> getAll(Model model) async {