Skip to content

Commit

Permalink
remove CA demo sur staging
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJimmyChevallier committed Feb 19, 2025
1 parent a3d2cf4 commit 1886d5c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/src/db/seeders/development/202502191822-remove-ca.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { isCa } = require("../../../utils/ca");

module.exports = {
up: async (queryInterface, Sequelize, models) => {
if (isCa()) {
const backupIdToRemove = await models.HRBackups.findByLabel('CA DE DEMO')
if(backupIdToRemove)
await models.HRBackups.removeBackup(backupIdToRemove)
}
},
down: (/*queryInterface , Sequelize*/) => {},
};
12 changes: 12 additions & 0 deletions api/src/db/seeders/staging/202502191822-remove-ca.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { isCa } = require("../../../utils/ca");

module.exports = {
up: async (queryInterface, Sequelize, models) => {
if (isCa()) {
const backupIdToRemove = await models.HRBackups.findByLabel('CA DE DEMO')
if(backupIdToRemove)
await models.HRBackups.removeBackup(backupIdToRemove)
}
},
down: (/*queryInterface , Sequelize*/) => {},
};

0 comments on commit 1886d5c

Please sign in to comment.