Jamie Curnow hace 2 años
padre
commit
fccbde1371
Se han modificado 3 ficheros con 6 adiciones y 5 borrados
  1. 3 3
      backend/internal/nginx.js
  2. 2 2
      backend/lib/utils.js
  3. 1 0
      backend/models/now_helper.js

+ 3 - 3
backend/internal/nginx.js

@@ -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);
@@ -147,7 +147,7 @@ const internalNginx = {
 				return;
 			}
 
-			const renderEngine = utils.getRenderEngine();
+			const renderEngine    = utils.getRenderEngine();
 			let renderedLocations = '';
 
 			const locationRendering = async () => {
@@ -319,7 +319,7 @@ const internalNginx = {
 			fs.unlinkSync(filename);
 		} catch (err) {
 			logger.debug('Could not delete file:', JSON.stringify(err, null, 2));
-		};
+		}
 	},
 
 	/**

+ 2 - 2
backend/lib/utils.js

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

+ 1 - 0
backend/models/now_helper.js

@@ -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()');