Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyuan committed Oct 27, 2024
1 parent 9ccc9c3 commit 29b395d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const handle: Handle = async ({ event, resolve }) => {
// send back the default 'pb_auth' cookie to the client with the latest store state
response.headers.set(
'set-cookie',
pb.authStore.exportToCookie({ httpOnly: false })
pb.authStore.exportToCookie({ httpOnly: false }),
)

return response
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export const load: LayoutServerLoad = async ({ locals }) => {
return {
user: locals.user,
}
}
}
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import '../app.postcss'
import type { Snippet } from 'svelte'
import { writable } from 'svelte/store'
import { applyAction, enhance } from '$app/forms'
import { setUserContext } from '$lib/contexts/user'
import { pb } from '$lib/pocketbase'
import type { Snippet } from 'svelte'
import { writable } from 'svelte/store'
import type { PageData } from './$types'
interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/login/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export const actions: Actions = {
throw e
}

redirect(303, '/');
redirect(303, '/')
},
}
2 changes: 1 addition & 1 deletion src/routes/logout/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export const actions: Actions = {
default: async ({ locals }) => {
locals.pb.authStore.clear()
locals.user = null
redirect(303, '/');
redirect(303, '/')
},
}
2 changes: 1 addition & 1 deletion src/routes/register/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export const actions: Actions = {
throw e
}

redirect(303, '/');
redirect(303, '/')
},
}

0 comments on commit 29b395d

Please sign in to comment.