Skip to content

Commit 77ba735

Browse files
fix(nodes): commit changes to db
1 parent c4e6511 commit 77ba735

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

invokeai/app/services/sqlite.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def set(self, item: T):
5959
f"""INSERT OR REPLACE INTO {self._table_name} (item) VALUES (?);""",
6060
(item.json(),),
6161
)
62+
self._conn.commit()
6263
finally:
6364
self._lock.release()
6465
self._on_changed(item)
@@ -84,6 +85,7 @@ def delete(self, id: str):
8485
self._cursor.execute(
8586
f"""DELETE FROM {self._table_name} WHERE id = ?;""", (str(id),)
8687
)
88+
self._conn.commit()
8789
finally:
8890
self._lock.release()
8991
self._on_deleted(id)

0 commit comments

Comments
 (0)