server/lib/gateway/gateway.backup.js
Function backup
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function backup(jobId) {
try {
const encryptKey = await this.variable.getValue('GLADYS_GATEWAY_BACKUP_KEY');
if (encryptKey === null) {
throw new NotFoundError('GLADYS_GATEWAY_BACKUP_KEY_NOT_FOUND');