refactor(migrations): convert function declarations to arrow functions

This commit is contained in:
hactazia 2026-04-14 23:20:48 +02:00
parent 8f65271f02
commit 4f6ce60cbe
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ const migrateName = "trust_forwarded_proto";
* @param {Object} knex
* @returns {Promise}
*/
const up = function (knex) {
const up = (knex) => {
logger.info(`[${migrateName}] Migrating Up...`);
return knex.schema
@ -28,7 +28,7 @@ const up = function (knex) {
* @param {Object} knex
* @returns {Promise}
*/
const down = function (knex) {
const down = (knex) => {
logger.info(`[${migrateName}] Migrating Down...`);
return knex.schema

View file

@ -10,7 +10,7 @@ const migrateName = "dynamic_upstream_resolve";
* @param {Object} knex
* @returns {Promise}
*/
const up = function (knex) {
const up = (knex) => {
logger.info(`[${migrateName}] Migrating Up...`);
return knex.schema
@ -28,7 +28,7 @@ const up = function (knex) {
* @param {Object} knex
* @returns {Promise}
*/
const down = function (knex) {
const down = (knex) => {
logger.info(`[${migrateName}] Migrating Down...`);
return knex.schema