Skip to content

Commit

Permalink
chore: added migration to clear configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleekr committed Apr 4, 2023
1 parent 9bc89f0 commit ca00cd8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions migrations/1680602116944-flush-configuration-cache.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const path = require('path');
const { logger: rootLogger, cache } = require('../app/helpers');

module.exports.up = async () => {
const logger = rootLogger.child({
gitHash: process.env.GIT_HASH || 'unspecified',
migration: path.basename(__filename)
});

logger.info('Start migration');

cache.hdelall('trailing-trade-configurations:*');

logger.info('Finish migration');
};

module.exports.down = next => {
next();
};

0 comments on commit ca00cd8

Please sign in to comment.