File controller - helper functions throws error in kotahi
While trying to make use of the createFile
helper function was receiving errors and it did not work as expected. On debugging further below are the errors identified.
After debugging the issue it seems the imports logger and useTransaction
were failing with errors.
Logger and useTranasction Imports on updating them with
const logger = require('@pubsweet/logger')
const useTransaction = require('../../useTransaction')
solves the above issues and below is a working screenshot
Duplicated my current working branch with the above issue in here file-server-helper-function-issue