Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix linting
  • Loading branch information
jc21 committed Mar 17, 2023
1 parent fec3683 commit fccbde1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions backend/internal/nginx.js
Expand Up @@ -82,7 +82,7 @@ const internalNginx = {
meta: combined_meta
})
.then(() => {
internalNginx.renameConfigAsError(host_type, host)
internalNginx.renameConfigAsError(host_type, host);
})
.then(() => {
return internalNginx.deleteConfig(host_type, host, true);
Expand Down Expand Up @@ -147,7 +147,7 @@ const internalNginx = {
return;
}

const renderEngine = utils.getRenderEngine();
const renderEngine = utils.getRenderEngine();
let renderedLocations = '';

const locationRendering = async () => {
Expand Down Expand Up @@ -319,7 +319,7 @@ const internalNginx = {
fs.unlinkSync(filename);
} catch (err) {
logger.debug('Could not delete file:', JSON.stringify(err, null, 2));
};
}
},

/**
Expand Down
4 changes: 2 additions & 2 deletions backend/lib/utils.js
Expand Up @@ -53,7 +53,7 @@ module.exports = {
*/
return (row) => {
return _.omit(row, omissions);
}
};
},

/**
Expand All @@ -72,7 +72,7 @@ module.exports = {
rows[idx] = _.omit(row, omissions);
});
return rows;
}
};
},

/**
Expand Down
1 change: 1 addition & 0 deletions backend/models/now_helper.js
Expand Up @@ -6,6 +6,7 @@ Model.knex(db);

module.exports = function () {
if (config.database.knex && config.database.knex.client === 'sqlite3') {
// eslint-disable-next-line
return Model.raw("datetime('now','localtime')");
}
return Model.raw('NOW()');
Expand Down

0 comments on commit fccbde1

Please sign in to comment.