From 9410ca902a9750fc7c7576c6ff8a318fe9c69b62 Mon Sep 17 00:00:00 2001 From: marknguyen1302 Date: Fri, 12 Jul 2024 10:21:36 +0700 Subject: [PATCH] fix: create sqlite tables --- .../src/infrastructure/database/sqlite-database.providers.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cortex-js/src/infrastructure/database/sqlite-database.providers.ts b/cortex-js/src/infrastructure/database/sqlite-database.providers.ts index db33dc333..a37eea421 100644 --- a/cortex-js/src/infrastructure/database/sqlite-database.providers.ts +++ b/cortex-js/src/infrastructure/database/sqlite-database.providers.ts @@ -19,6 +19,9 @@ export const sqliteDatabaseProviders = [ logging: false, }); sequelize.addModels([ThreadEntity, MessageEntity, AssistantEntity]); + await ThreadEntity.sync(); + await MessageEntity.sync(); + await AssistantEntity.sync(); return sequelize; }, },