mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Fix SQL Errors.
This commit is contained in:
parent
a232d9bc2b
commit
d18f8c6234
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ export async function checkIfUserHasCustomGroqKey(token?: string) {
|
|||
}
|
||||
const fetchUserToken = await sql`
|
||||
select groq_api_key from user_other_data
|
||||
where user=${checkRealToken[0].username}`;
|
||||
where username=${checkRealToken[0].username}`;
|
||||
if (fetchUserToken.length === 0) {
|
||||
return {
|
||||
status: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue