fixes migrations

This commit is contained in:
Christian Beutel
2025-03-17 01:25:12 +01:00
parent eca79758ec
commit 07ff8807fe
135 changed files with 2911 additions and 16199 deletions

View File

@@ -80,7 +80,7 @@ const auth: Handle = async ({ event, resolve }) => {
meiliApiKey = pb.authStore.model.token
settings = await pb.collection('settings').getFirstListItem<Settings>(`user="${pb.authStore.model.id}"`, { requestKey: null })
} else {
const r = await event.fetch(pb.buildUrl("/public/search/token"));
const r = await event.fetch(pb.buildURL("/public/search/token"));
const response = await r.json();
meiliApiKey = response.token;
}