mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	fix linting
This commit is contained in:
		| @@ -82,7 +82,7 @@ const internalNginx = { | |||||||
| 								meta: combined_meta | 								meta: combined_meta | ||||||
| 							}) | 							}) | ||||||
| 							.then(() => { | 							.then(() => { | ||||||
| 								internalNginx.renameConfigAsError(host_type, host) | 								internalNginx.renameConfigAsError(host_type, host); | ||||||
| 							}) | 							}) | ||||||
| 							.then(() => { | 							.then(() => { | ||||||
| 								return internalNginx.deleteConfig(host_type, host, true); | 								return internalNginx.deleteConfig(host_type, host, true); | ||||||
| @@ -147,7 +147,7 @@ const internalNginx = { | |||||||
| 				return; | 				return; | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
| 			const renderEngine = utils.getRenderEngine(); | 			const renderEngine    = utils.getRenderEngine(); | ||||||
| 			let renderedLocations = ''; | 			let renderedLocations = ''; | ||||||
|  |  | ||||||
| 			const locationRendering = async () => { | 			const locationRendering = async () => { | ||||||
| @@ -319,7 +319,7 @@ const internalNginx = { | |||||||
| 			fs.unlinkSync(filename); | 			fs.unlinkSync(filename); | ||||||
| 		} catch (err) { | 		} catch (err) { | ||||||
| 			logger.debug('Could not delete file:', JSON.stringify(err, null, 2)); | 			logger.debug('Could not delete file:', JSON.stringify(err, null, 2)); | ||||||
| 		}; | 		} | ||||||
| 	}, | 	}, | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
|   | |||||||
| @@ -53,7 +53,7 @@ module.exports = { | |||||||
| 		 */ | 		 */ | ||||||
| 		return (row) => { | 		return (row) => { | ||||||
| 			return _.omit(row, omissions); | 			return _.omit(row, omissions); | ||||||
| 		} | 		}; | ||||||
| 	}, | 	}, | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| @@ -72,7 +72,7 @@ module.exports = { | |||||||
| 				rows[idx] = _.omit(row, omissions); | 				rows[idx] = _.omit(row, omissions); | ||||||
| 			}); | 			}); | ||||||
| 			return rows; | 			return rows; | ||||||
| 		} | 		}; | ||||||
| 	}, | 	}, | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
|   | |||||||
| @@ -6,6 +6,7 @@ Model.knex(db); | |||||||
|  |  | ||||||
| module.exports = function () { | module.exports = function () { | ||||||
| 	if (config.database.knex && config.database.knex.client === 'sqlite3') { | 	if (config.database.knex && config.database.knex.client === 'sqlite3') { | ||||||
|  | 		// eslint-disable-next-line | ||||||
| 		return Model.raw("datetime('now','localtime')"); | 		return Model.raw("datetime('now','localtime')"); | ||||||
| 	} | 	} | ||||||
| 	return Model.raw('NOW()'); | 	return Model.raw('NOW()'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user