Signal and middleware updates

This commit is contained in:
Darren Clarke 2024-09-05 16:19:58 +02:00
parent 31faf22fd5
commit 27300b2530
3 changed files with 4 additions and 5 deletions

View file

@ -48,6 +48,9 @@ const processMessage = async ({
const { envelope } = msg;
console.log(envelope);
const { source, sourceUuid, dataMessage } = envelope;
if (!dataMessage) return [];
const { attachments } = dataMessage;
const rawTimestamp = dataMessage?.timestamp;
const timestamp = new Date(rawTimestamp);

View file

@ -16,7 +16,7 @@ export const ZammadLoginProvider: FC<PropsWithChildren> = ({ children }) => {
});
if (response.status !== 200) {
window.location.href = "/auth/sso";
window.location.href = "/zammad/auth/sso";
}
}
};

View file

@ -112,8 +112,4 @@ export default withAuth(checkRewrites, {
export const config = {
matcher: ["/((?!ws|wss|api|_next/static|_next/image|favicon.ico).*)"],
missing: [
{ type: "header", key: "next-router-prefetch" },
{ type: "header", key: "purpose", value: "prefetch" },
],
};