mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +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 } } =
|
const data: { error?: any; response?: { id: number } } =
|
||||||
response.data as object;
|
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;
|
return data.response.id;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user