Fix hooks and logs #24
2 changed files with 1 additions and 17 deletions
|
@ -41,7 +41,7 @@ export const handleFetch: HandleFetch = async ({ request, fetch, event: { cookie
|
||||||
|
|
||||||
request = new Request(request, {
|
request = new Request(request, {
|
||||||
headers: {
|
headers: {
|
||||||
...request.headers,
|
...Object.fromEntries(request.headers),
|
||||||
Authorization: `Bearer ${session}`
|
Authorization: `Bearer ${session}`
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -92,22 +92,6 @@
|
||||||
<p class="text-sm font-medium text-muted-foreground">
|
<p class="text-sm font-medium text-muted-foreground">
|
||||||
Path: <span class="font-normal text-foreground">{log.path}</span>
|
Path: <span class="font-normal text-foreground">{log.path}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="text-sm font-medium text-muted-foreground">
|
|
||||||
Logged:
|
|
||||||
<span
|
|
||||||
class={cn({
|
|
||||||
'text-green-500': log.logged,
|
|
||||||
'text-red-500': !log.logged
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
{log.logged ? 'Yes' : 'No'}
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
{#if log.pseudo}
|
|
||||||
<p class="text-sm font-medium text-muted-foreground">
|
|
||||||
Pseudo: <span class="font-normal text-foreground">{log.pseudo}</span>
|
|
||||||
</p>
|
|
||||||
{/if}
|
|
||||||
<p class="text-sm font-medium text-muted-foreground">
|
<p class="text-sm font-medium text-muted-foreground">
|
||||||
Date:
|
Date:
|
||||||
<span class="font-normal text-foreground">
|
<span class="font-normal text-foreground">
|
||||||
|
|
Loading…
Add table
Reference in a new issue