Data/Users: Rename layout.server.ts to page.server.ts
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import type { User } from "$lib/schema";
|
import type { User } from "$lib/schema";
|
||||||
import type { LayoutServerLoad } from "./$types";
|
import type { PageServerLoad } from "./$types";
|
||||||
|
|
||||||
export const load: LayoutServerLoad = async ({ fetch, locals }) => {
|
export const load: PageServerLoad = async ({ fetch, locals }) => {
|
||||||
const fetch_users = async (): Promise<User[]> => {
|
const fetch_users = async (): Promise<User[]> => {
|
||||||
const users: User[] = await locals.pb
|
const users: User[] = await locals.pb
|
||||||
.collection("users")
|
.collection("users")
|
||||||
Reference in New Issue
Block a user