Skip to content

Commit

Permalink
fix broken dictionary collection import
Browse files Browse the repository at this point in the history
  • Loading branch information
djahandarie committed Dec 29, 2024
1 parent f342886 commit b69edba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/js/dictionary/dictionary-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ export class DictionaryDatabase {
if (this._db.isOpen()) {
this._db.close();
}
if (this._worker !== null) {
this._worker.terminate();

Check failure on line 204 in ext/js/dictionary/dictionary-database.js

View workflow job for this annotation

GitHub Actions / Unit Tests

test/database.test.js > Database > Database cleanup > Testing cleanup method 'purge' > Import data and test

TypeError: this._worker.terminate is not a function ❯ DictionaryDatabase.purge ext/js/dictionary/dictionary-database.js:204:26 ❯ test/database.test.js:332:50
this._worker = null;
}
let result = false;
try {
await Database.deleteDatabase(this._dbName);
Expand Down

0 comments on commit b69edba

Please sign in to comment.