Skip to content

Commit

Permalink
Merge branch 'develop' into ON-1148_Mendoza_Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mfonsecaOEF authored Jan 17, 2024
2 parents 6f0b1cb + a30b0f7 commit 75485d2
Show file tree
Hide file tree
Showing 105 changed files with 132,962 additions and 1,772 deletions.
4 changes: 3 additions & 1 deletion app/config/config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@ module.exports = {
database: process.env.DATABASE_NAME,
host: process.env.DATABASE_HOST,
dialect: "postgres",
logging: true,
logging: false,
},
test: {
username: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD || null,
database: process.env.DATABASE_NAME,
host: process.env.DATABASE_HOST,
dialect: "postgres",
logging: false,
},
production: {
username: process.env.DATABASE_USER,
password: process.env.DATABASE_PASSWORD || null,
database: process.env.DATABASE_NAME,
host: process.env.DATABASE_HOST,
dialect: "postgres",
logging: false,
},
};
4 changes: 3 additions & 1 deletion app/cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// https://on.cypress.io/custom-commands

import { logger } from '../../src/services/logger';

Cypress.Commands.add("signup", (email, password) => {
cy.request({
method: "POST",
Expand All @@ -25,7 +27,7 @@ Cypress.Commands.add("login", (email, password) => {
email,
password,
}).then((res) => {
console.log(res.body);
logger.debug(res.body);
});
});
});
Expand Down
3 changes: 3 additions & 0 deletions app/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ SMTP_USER="user"
SMTP_PASSWORD="password"
SMTP_FROM_EMAIL="[email protected]"
RESET_TOKEN_SECRET="WwjFGhcP8VikgsmtcPv+ufPhTGS8t7e+/aN5k2qY4ms="
NEXT_PUBLIC_SUPPORT_EMAILS="[email protected],[email protected]"
VERIFICATION_TOKEN_SECRET="80c70dfdeedf2c01757b880d39c79214e915c786dd48d5473c9c0aecf81d67cf"

30 changes: 30 additions & 0 deletions app/migrations/20231206143948-SubSectorValue-unique.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface) {
return queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.bulkDelete("SubSectorValue", {}, { transaction });
await queryInterface.addIndex(
"SubSectorValue",
["inventory_id", "subsector_id"],
{
name: "ID_SubSectorValue_inventory_id_subsector_id",
indicesType: "UNIQUE",
unique: true,
transaction,
},
);
});
},

async down(queryInterface) {
return queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.removeIndex(
"SubSectorValue",
"ID_SubSectorValue_inventory_id_subsector_id",
{ transaction },
);
});
},
};
Loading

0 comments on commit 75485d2

Please sign in to comment.