diff --git a/backend/db.js b/backend/db.js index b577685..c79debb 100644 --- a/backend/db.js +++ b/backend/db.js @@ -169,7 +169,7 @@ exports._connectToDB = async (custom_connection_string = null) => { exports.setVideoProperty = async (file_uid, assignment_obj) => { // TODO: check if video exists, throw error if not - await db_api.updateRecord('files', {uid: file_uid}, assignment_obj); + await exports.updateRecord('files', {uid: file_uid}, assignment_obj); } exports.getFileDirectoriesAndDBs = async () => {