fix(gemini): budget-check före bildhämtning så spärr triggars tidigt

This commit is contained in:
Sven (AAMOS AI)
2026-08-12 16:30:49 +07:00
parent 6c581bec1a
commit 7dda0fad00
4 changed files with 27 additions and 6 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ export async function authRoutes(app: FastifyInstance) {
// Trial startas först när e-posten är verifierad. En trial per verifierad e-post.
const [existingTrial] = await app.db
.select({ id: schema.trials.id })
.select({ userId: schema.trials.userId })
.from(schema.trials)
.where(eq(schema.trials.userId, stored.userId))
.limit(1);