Skip to content

Commit

Permalink
Add alternate test user
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithriel committed Nov 22, 2023
1 parent 48642bb commit af78c95
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ module.exports = {
if (unreviewedAcessGroup.length === 0) {
let user = await queryInterface.sequelize.query(
// eslint-disable-next-line no-multi-str
'select distinct * from users u\
where deleted_at is null',
'select distinct u.id from users u\
where (username = \'ipr-bamboo-admin\' or username = \'ipr-demo\')\
and deleted_at is null',
{
type: queryInterface.sequelize.QueryTypes.SELECT,
},
);

console.log(user);
// user = user[0];
throw new Error();
user = user[0];

await queryInterface.sequelize.query(
// eslint-disable-next-line no-multi-str
`INSERT INTO user_groups (name, owner_id, created_at, updated_at)\
Expand Down

0 comments on commit af78c95

Please sign in to comment.