Skip to content

Commit c424f49

Browse files
committed
Fix unable to save config
1 parent 9a767cb commit c424f49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/api/src/routes/config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ const configRouter = new Hono<AuthHonoEnv>()
186186
try {
187187
const userId = getUserIdOrThrow(c);
188188
const db = createDb(c.env);
189-
const userConfig = await getUserConfig(userId, c.env);
189+
const userConfig = await db
190+
.select()
191+
.from(configTable)
192+
.where(eq(configTable.userId, userId))
193+
.get();
190194

191195
const data = c.req.valid('json');
192196

0 commit comments

Comments
 (0)