mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Spent a hour fixing the login & registing system & also finding errors
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
in the custom groq api system (also a typo wasted way too much time)
This commit is contained in:
parent
a8d675e2ae
commit
1eb15058d7
3 changed files with 25 additions and 18 deletions
|
@ -9,7 +9,7 @@ export async function checkIfUserHasCustomGroqKey(token?: string) {
|
|||
}
|
||||
const checkRealToken = await sql`
|
||||
select * from usertokens
|
||||
where tokens=${token}
|
||||
where token = ${token}
|
||||
`;
|
||||
if (checkRealToken.length === 0) {
|
||||
return {
|
||||
|
@ -28,6 +28,6 @@ export async function checkIfUserHasCustomGroqKey(token?: string) {
|
|||
}
|
||||
return {
|
||||
status: true,
|
||||
customAPi: fetchUserToken[0].groq_api_key,
|
||||
customApi: fetchUserToken[0].groq_api_key,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue