fix closing database

This commit is contained in:
liamcottle
2025-02-13 14:32:24 +13:00
parent bd85fb60f2
commit f4af191050

View File

@@ -9,7 +9,7 @@ async function initDatabase(publicKeyHex) {
// close any exsiting database connection
if(database){
await database.destroy();
await database.close();
}
// create a database with a unique name per identity