I have a function as follows
export const encrypt = (recordJSONy, logger) => { const key = config.encryption.key if(!key || key == ""){ throw encry