abmp-npm 1.1.73 → 1.1.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,9 +3,7 @@ const { getSecret } = require('../utils');
3
3
 
4
4
  const validateQAUser = async userEmail => {
5
5
  const qaUsers = await getQAUsers();
6
- console.log('userEmail', userEmail);
7
6
  const matchingUserEmail = qaUsers.find(user => user.email === userEmail)?.email;
8
- console.log('matchingUserEmail', matchingUserEmail);
9
7
  if (!matchingUserEmail) {
10
8
  return { error: `Invalid user email: ${userEmail}` };
11
9
  }
@@ -444,13 +444,10 @@ const getMemberByEmail = async email => {
444
444
  const getQAUsers = async () => {
445
445
  try {
446
446
  return await wixData
447
- .query(COLLECTIONS.QA_Users)
447
+ .query(COLLECTIONS.QA_USERS)
448
448
  .include('member')
449
449
  .find()
450
- .then(res => {
451
- console.log('res', JSON.stringify(res.items, null, 2));
452
- return res.items.map(item => item.member);
453
- });
450
+ .then(res => res.items.map(item => item.member));
454
451
  } catch (error) {
455
452
  console.error('Error getting QA users:', error);
456
453
  throw new Error(`Failed to get QA users: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abmp-npm",
3
- "version": "1.1.73",
3
+ "version": "1.1.74",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "check-cycles": "madge --circular .",
package/public/consts.js CHANGED
@@ -12,7 +12,7 @@ const COLLECTIONS = {
12
12
  INTERESTS: 'interests',
13
13
  STATE_CITY_MAP: 'City',
14
14
  UPDATED_LOGIN_EMAILS: 'updatedLoginEmails',
15
- QA_Users: 'QA_Users', //Make QA users configurable per site
15
+ QA_USERS: 'QA_Users', //Make QA users configurable per site
16
16
  };
17
17
 
18
18
  /**