diff --git a/src/scripts/import-dir.ts b/src/scripts/import-dir.ts index e660199..a69194f 100644 --- a/src/scripts/import-dir.ts +++ b/src/scripts/import-dir.ts @@ -27,7 +27,7 @@ async function main() { const mime = await guess(files[i].split('.').pop()); data.push({ - file: files[i], + name: files[i], mimetype: mime, userId, });