fix(db): fix deprecated pydantic .json() method

This commit is contained in:
psychedelicious 2023-10-30 12:15:26 -05:00
parent 55bfadfd0b
commit 03a64275c6

View File

@ -57,7 +57,7 @@ class SqliteWorkflowRecordsStorage(WorkflowRecordsStorageBase):
INSERT INTO workflows(workflow) INSERT INTO workflows(workflow)
VALUES (?); VALUES (?);
""", """,
(workflow.json(),), (workflow.model_dump_json(),),
) )
self._conn.commit() self._conn.commit()
except Exception: except Exception: