fix: use name instead of file (#281)

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
This commit is contained in:
Jayvin Hernandez 2023-02-10 22:47:06 -08:00 committed by GitHub
parent fb5f50d5bd
commit 283c7c5a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ async function main() {
const mime = await guess(files[i].split('.').pop()); const mime = await guess(files[i].split('.').pop());
data.push({ data.push({
file: files[i], name: files[i],
mimetype: mime, mimetype: mime,
userId, userId,
}); });