Fix linter errors
This commit is contained in:
parent
d9985ddc4b
commit
5c18a202c2
@ -30,12 +30,12 @@ export default function Authentik({ service }) {
|
||||
}
|
||||
|
||||
const yesterday = new Date(Date.now()).setHours(-24);
|
||||
const loginsLast24H = loginsData.reduce((total, current) => {
|
||||
return current.x_cord >= yesterday ? total + current.y_cord : total;
|
||||
}, 0);
|
||||
const failedLoginsLast24H = failedLoginsData.reduce((total, current) => {
|
||||
return current.x_cord >= yesterday ? total + current.y_cord : total;
|
||||
}, 0);
|
||||
const loginsLast24H = loginsData.reduce(
|
||||
(total, current) => current.x_cord >= yesterday ? total + current.y_cord : total
|
||||
, 0);
|
||||
const failedLoginsLast24H = failedLoginsData.reduce(
|
||||
(total, current) => current.x_cord >= yesterday ? total + current.y_cord : total
|
||||
, 0);
|
||||
|
||||
return (
|
||||
<Widget>
|
||||
|
||||
@ -20,7 +20,7 @@ export default async function credentialedProxyHandler(req, res) {
|
||||
} else if (widget.type === "gotify") {
|
||||
headers["X-gotify-Key"] = `${widget.key}`;
|
||||
} else if (widget.type === "authentik") {
|
||||
headers["Authorization"] = `Bearer ${widget.key}`;
|
||||
headers.Authorization = `Bearer ${widget.key}`;
|
||||
} else {
|
||||
headers["X-API-Key"] = `${widget.key}`;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user