Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
moiskillnadne committed Dec 23, 2024
1 parent be4c0f7 commit 71efc84
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ module.exports = {
});

const currentDate = new Date();
const currentMonth = currentDate.getMonth();
const currentMonth = currentDate.getMonth() + 1;
const currentYear = currentDate.getFullYear();

console.log(currentMonth);

const formattedCurrentMonth = ('0' + currentMonth).slice(-2);

console.log(formattedCurrentMonth);

await queryInterface.bulkUpdate(
'userChallenge',
{ status: 'ACTIVE' },
Expand Down

0 comments on commit 71efc84

Please sign in to comment.