diff --git a/controllers/backend/uploading.js b/controllers/backend/uploading.js index 496a8154..e36e44f8 100644 --- a/controllers/backend/uploading.js +++ b/controllers/backend/uploading.js @@ -235,7 +235,7 @@ exports.postFileUpload = async(req, res) => { const userIsRestricted = testIfUserRestricted(user, logObject, res); if(userIsRestricted){ return; } - const uploadAlreadyUploaded = checkIfAlreadyUploaded(user, title, logObject, res); + const uploadAlreadyUploaded = await checkIfAlreadyUploaded(user, title, logObject, res); if(uploadAlreadyUploaded){ return; } // let upload = setUpload()