mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 15:53:08 +02:00
chore: lint
This commit is contained in:
parent
2d31c189d8
commit
d14b9af93d
1 changed files with 2 additions and 2 deletions
|
@ -36,11 +36,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
return ctrl.signal;
|
||||
};
|
||||
|
||||
sponsors = await fetch("https://kaifa.ch/transfem-sponsors.json",{ signal: AbortSignal.timeout(2000) })
|
||||
sponsors = await fetch("https://kaifa.ch/transfem-sponsors.json", { signal: AbortSignal.timeout(2000) })
|
||||
.then((response) => response.json());
|
||||
await this.redisClient.set("sponsors", JSON.stringify(sponsors), "EX", 3600);
|
||||
}
|
||||
return { sponsor_data: sponsors['sponsors'] };
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue