From bd7018e6ab0b82d7a19fbd830f84406ee2aa31ad Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Fri, 26 Mar 2021 10:24:31 +0100 Subject: [PATCH] fix linting Signed-off-by: Erik Larsson --- .../auth-backend/migrations/20210326100300_timestamptz.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/auth-backend/migrations/20210326100300_timestamptz.js b/plugins/auth-backend/migrations/20210326100300_timestamptz.js index e23644cfa1..2e8fa1bc7c 100644 --- a/plugins/auth-backend/migrations/20210326100300_timestamptz.js +++ b/plugins/auth-backend/migrations/20210326100300_timestamptz.js @@ -19,7 +19,7 @@ /** * @param {import('knex').Knex} knex */ -exports.up = function (knex, Promise) { +exports.up = async function up(knex) { return knex.schema.alterTable('signing_keys', function (t) { t.timestamp('created_at', { useTz: true, precision: 0 }) .notNullable() @@ -29,7 +29,10 @@ exports.up = function (knex, Promise) { }); }; -exports.down = function (knex, Promise) { +/** + * @param {import('knex').Knex} knex + */ +exports.down = async function down(knex) { return knex.schema.alterTable('signing_keys', function (t) { t.timestamp('created_at', { useTz: false, precision: 0 }) .notNullable()