mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
Add extra logging for tests.
This commit is contained in:
@@ -148,7 +148,10 @@ export class AuthService {
|
||||
const data: { error?: any; response?: { id: number } } =
|
||||
response.data as object;
|
||||
|
||||
if (response.status !== 200 || data.error !== undefined) return null;
|
||||
if (response.status !== 200 || data.error !== undefined) {
|
||||
console.warn(data);
|
||||
return null;
|
||||
}
|
||||
|
||||
return data.response.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user