From 4e8b8f16985d6360511aa39bc7202559764660b6 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 18:33:21 +0000 Subject: [PATCH] Projektarten: Schema-Skript liest alle Attribute (limit 200) Co-Authored-By: Claude Opus 5.5 --- scripts/projektarten-setup.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }) {