Skip to content

Commit b6b6753

Browse files
committed
update questionIds to work with different environments
1 parent 1a3ea16 commit b6b6753

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
export const questionIds = {
2-
userApplication: {
3-
firstname: 53,
4-
lastname: 52,
5-
countryCode: 50,
6-
gender: 51,
1+
// use MJ_ENV since we need the same env: local, dev, prod
2+
// dev questionIds are unknown as they don't currently exist,
3+
// it will probably be the same since they seed from the same set of data
4+
const questionIdsSets = {
5+
local: {
6+
userApplication: {
7+
firstname: 53,
8+
lastname: 52,
9+
countryCode: 50,
10+
gender: 51,
11+
},
12+
},
13+
dev: {
14+
userApplication: {
15+
firstname: 53,
16+
lastname: 52,
17+
countryCode: 50,
18+
gender: 51,
19+
},
720
},
821
};
22+
23+
const MJ_ENV = process.env.MJ_ENV === "local" ? "local" : "dev";
24+
export const questionIds = questionIdsSets[MJ_ENV];

src/users/users.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,5 @@ export class UsersService {
342342
throw e;
343343
}
344344
}
345-
346-
// TODO: return the entity (maybe just the fields updated) but without sensitive information like the admin comments
347-
348-
// return `User application submitted, ${req.user.userId}, firstname=${firstname}, lastname=${lastname}, countryCode=${countryCode}`;
349345
}
350346
}

0 commit comments

Comments
 (0)