diff --git a/routes/admin/api/index.ts b/routes/admin/api/index.ts index cd11f51..ebb4ada 100644 --- a/routes/admin/api/index.ts +++ b/routes/admin/api/index.ts @@ -37,7 +37,7 @@ export const handler: Handlers = { case 'get_schools_data': { const result: Schools[] = [] - const entries = db.list({ prefix: ["schools"] }) // schools一覧をDBから取得 + const entries = kv.list({ prefix: ["schools"] }) // schools一覧をDBから取得 for await (const entry of entries) { const data = entry.value as Schools result.push(data)