more lint
This commit is contained in:
parent
bb2058a010
commit
5150288e85
|
@ -71,7 +71,7 @@ exports.processLocalFileUpload = async function(ctx) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// TODO: get file sizes of images after resize
|
// TODO: get file sizes of images after resize
|
||||||
const responses = await Promise.all(fileProcessOperations)
|
await Promise.all(fileProcessOperations)
|
||||||
|
|
||||||
let pendingFileUploads
|
let pendingFileUploads
|
||||||
// local document used to track which files need to be uploaded
|
// local document used to track which files need to be uploaded
|
||||||
|
@ -87,8 +87,8 @@ exports.processLocalFileUpload = async function(ctx) {
|
||||||
pendingFileUploads = { _id: "_local/fileuploads", uploads: [] }
|
pendingFileUploads = { _id: "_local/fileuploads", uploads: [] }
|
||||||
})
|
})
|
||||||
|
|
||||||
fileUploads.uploads = [...filesToProcess, ...pendingFileUploads.uploads]
|
pendingFileUploads.uploads = [...filesToProcess, ...pendingFileUploads.uploads]
|
||||||
await db.put(fileUploads)
|
await db.put(pendingFileUploads)
|
||||||
|
|
||||||
ctx.body = filesToProcess
|
ctx.body = filesToProcess
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue