diff --git a/src/index.ts b/src/index.ts index 64b4337..a67b396 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,8 +78,8 @@ export const app = new Elysia() try { const json = (await req.json()).map((school: Record) => ({ slug: school.slug, - name: school.name, - long: school.long_name, + name: school.name?.trim(), + long: school.long_name?.trim(), })) const data = JSON.stringify(json) cache.set(store.cacheKey, data)