From 94dafde23c8c48994cc2afa580c8a026d23b831a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 21 Sep 2021 11:09:22 +0200 Subject: [PATCH] fix: minor export syntaxt --- .../20210920104218-rename-global-env-to-default-env.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/migrations/20210920104218-rename-global-env-to-default-env.js b/src/migrations/20210920104218-rename-global-env-to-default-env.js index 6f0fc1f6f6..a6b8839d5e 100644 --- a/src/migrations/20210920104218-rename-global-env-to-default-env.js +++ b/src/migrations/20210920104218-rename-global-env-to-default-env.js @@ -1,6 +1,6 @@ 'use strict'; -exports.up = function (db, cb) { +const up = function (db, cb) { db.runSql( ` INSERT INTO environments(name, display_name, protected, sort_order) VALUES ('default', 'Default Environment', true, 1); @@ -15,7 +15,7 @@ exports.up = function (db, cb) { ); }; -exports.down = function (db, cb) { +const down = function (db, cb) { db.runSql( ` INSERT INTO environments(name, display_name, protected) VALUES (':global:', 'Across all environments', true); @@ -29,3 +29,5 @@ exports.down = function (db, cb) { cb, ); }; + +module.exports = { up, down };