diff options
Diffstat (limited to 'backend/ts/api/login.ts')
| -rw-r--r-- | backend/ts/api/login.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/ts/api/login.ts b/backend/ts/api/login.ts index c01ef75..3b001ce 100644 --- a/backend/ts/api/login.ts +++ b/backend/ts/api/login.ts @@ -19,6 +19,7 @@ export default async function apiLogin(req: Request, res: Response) { let dbRes = (await makeQuery("SELECT * FROM `fia` WHERE `started`= 0 LIMIT 1", [])) as Array<fiaTable>, row: fiaTable; + if (dbRes[0] === undefined) { let color = Helpers.getRandomInt(0, 4); row = {} as fiaTable; |
