Don't always use 'mailer' for all resource lists

This commit is contained in:
Eli Ribble 2026-05-16 18:12:51 +00:00
parent 0256b9bb42
commit eacb8c567c
No known key found for this signature in database

View file

@ -57,11 +57,14 @@ function createResourceStore<dto, full extends uriHaver>(
return cur; return cur;
} }
async function fetchAll(): Promise<full[]> { async function fetchAll(): Promise<full[]> {
/*
const sessionStore = useSessionStore(); const sessionStore = useSessionStore();
const session = await sessionStore.get(); const session = await sessionStore.get();
const params = new URLSearchParams(); const params = new URLSearchParams();
params.append("sort", "-created"); params.append("sort", "-created");
const url = `${session.urls.api.mailer}?${params}`; const url = `${session.urls.api.mailer}?${params}`;
*/
const url = `/api/${api_base}`;
const dtos = (await apiClient.JSONGet(url)) as dto[]; const dtos = (await apiClient.JSONGet(url)) as dto[];
const resources = dtos.map((m: dto) => from_json(m)); const resources = dtos.map((m: dto) => from_json(m));
resources.forEach((r: full) => { resources.forEach((r: full) => {