Close db on worker put

This commit is contained in:
Mitchell McCaffrey 2021-03-18 11:34:31 +11:00
parent adcb55b937
commit 100a8f8fab

View File

@ -61,6 +61,7 @@ let service = {
} else {
db.table(table).put(decoded);
}
db.close();
return true;
} catch {
return false;