🚨 deepsource

This commit is contained in:
Mawoka
2022-04-09 10:55:17 +02:00
parent 827af2ebdb
commit fd0b51d7e3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -25,12 +25,12 @@ export async function getSession(event) {
if (redis_res === null) {
const res = await fetch(`${process.env.API_URL}/api/v1/users/check`, {
headers: {
Cookie: `access_token=Bearer ${event.locals.token}`
Cookie: `access_token=Bearer ${event.locals.token}` // skipcq: JS-0378
}
});
if (res.ok) {
const json = await res.json();
//@ts-ignore
//@ts-ignore // skipcq: JS-0295
user_email = json.email;
} else {
user_email = null;