diff --git a/routes/(apps)/notes/api/notes/import-xlsx.ts b/routes/(apps)/notes/api/notes/import-xlsx.ts index 134f3d2..3e4ce09 100644 --- a/routes/(apps)/notes/api/notes/import-xlsx.ts +++ b/routes/(apps)/notes/api/notes/import-xlsx.ts @@ -5,7 +5,7 @@ import { db } from "../../../../../databases/db.ts"; import { notes } from "../../../../../databases/schema.ts"; export const handler: Handlers = { - // # 44 POST /notes/import-xlsx + //# 44 POST /notes/import-xlsx async POST(request) { try { const formData = await request.formData(); @@ -23,7 +23,10 @@ export const handler: Handlers = { const buffer = await file.arrayBuffer(); const workbook = XLSX.read(buffer); const sheet = workbook.Sheets[workbook.SheetNames[0]]; - const rows = XLSX.utils.sheet_to_json(sheet) as { numEtud: number; note: number }[]; + const rows = XLSX.utils.sheet_to_json(sheet) as { + numEtud: number; + note: number; + }[]; for (const row of rows) { const { numEtud, note } = row;