From 0213ceb7fe91fe3b35d0e6a29aa1f9e5de1b4d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Thu, 14 Apr 2022 16:59:16 +0100 Subject: [PATCH] feat: add DB migration to add the hash of T&C --- migrations/1649944954805-terms-and-conditions-hash.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/1649944954805-terms-and-conditions-hash.js diff --git a/migrations/1649944954805-terms-and-conditions-hash.js b/migrations/1649944954805-terms-and-conditions-hash.js new file mode 100644 index 00000000..3b905e22 --- /dev/null +++ b/migrations/1649944954805-terms-and-conditions-hash.js @@ -0,0 +1,11 @@ +const { saveConfig } = require('../lib/new-settings-loader') + +exports.up = function (next) { + return saveConfig({}) + .then(next) + .catch(next) +} + +exports.down = function (next) { + next() +}