mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Maybe delete outdated sid
This commit is contained in:
@@ -80,6 +80,7 @@ export default async function wgeasyProxyHandler(req, res) {
|
||||
const parsedData = JSON.parse(data);
|
||||
|
||||
if (parsedData.statusCode > 400) {
|
||||
cache.del(`${sessionSIDCacheKey}.${service}`);
|
||||
return res
|
||||
.status(parsedData.statusCode)
|
||||
.json({ error: { message: "Error communicating with Wg-Easy", data: parsedData } });
|
||||
|
||||
Reference in New Issue
Block a user