We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a767cb commit c424f49Copy full SHA for c424f49
apps/api/src/routes/config.ts
@@ -186,7 +186,11 @@ const configRouter = new Hono<AuthHonoEnv>()
186
try {
187
const userId = getUserIdOrThrow(c);
188
const db = createDb(c.env);
189
- const userConfig = await getUserConfig(userId, c.env);
+ const userConfig = await db
190
+ .select()
191
+ .from(configTable)
192
+ .where(eq(configTable.userId, userId))
193
+ .get();
194
195
const data = c.req.valid('json');
196
0 commit comments