Fix gameforge team query type
cgen-659e82113a8c45ef931a66b587d3dab5
This commit is contained in:
parent
249e3c8144
commit
0aa7d46acd
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ export default async function handler(req: any, res: any) {
|
|||
{ count: "exact" },
|
||||
);
|
||||
|
||||
if (user_id) dbQuery = dbQuery.eq("user_id", user_id).single();
|
||||
if (user_id) dbQuery = dbQuery.eq("user_id", user_id).single() as any;
|
||||
if (project_id) dbQuery = dbQuery.contains("project_ids", [project_id]);
|
||||
if (role) dbQuery = dbQuery.eq("role", role);
|
||||
if (!user_id) dbQuery = dbQuery.eq("is_active", true);
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
success: true,
|
||||
game_token: gameToken,
|
||||
user_id: userData.id,
|
||||
username: userData.username,
|
||||
username: userData.username || roblox_username,
|
||||
expires_in: 86400, // seconds
|
||||
});
|
||||
} catch (error: any) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue