Skip to content

Commit

Permalink
trim whitespace from school names
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Dec 28, 2024
1 parent f4d1721 commit cfbd397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export const app = new Elysia()
try {
const json = (await req.json()).map((school: Record<string, string>) => ({
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)
Expand Down

0 comments on commit cfbd397

Please sign in to comment.