diff --git a/scripts/projektarten-setup.mjs b/scripts/projektarten-setup.mjs index b12fd2a..7bf257e 100644 --- a/scripts/projektarten-setup.mjs +++ b/scripts/projektarten-setup.mjs @@ -43,7 +43,9 @@ export function createAppwriteClient() { return { async listAttributes() { - const data = await aw('/attributes') + // Ohne limit liefert Appwrite nur 25 Attribute - die Sammlung hat mehr + const q = encodeURIComponent(JSON.stringify({ method: 'limit', values: [200] })) + const data = await aw(`/attributes?queries[]=${q}`) return data.attributes || [] }, async createAttribute({ type, ...body }) {