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

in the custom groq api system (also a typo wasted way too much time)
This commit is contained in:
yuanhau 2025-06-07 15:49:28 +08:00
parent a8d675e2ae
commit 1eb15058d7
3 changed files with 25 additions and 18 deletions

View file

@ -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,
};
}