From ed8cc1d1e21e9a6d56ee934ed16257362ba3c332 Mon Sep 17 00:00:00 2001 From: Brett Slaski Date: Thu, 30 Nov 2023 11:32:49 -0600 Subject: [PATCH 1/2] fix: typo in findSharedProfile, email --- package.json | 2 +- src/lib/findSharedProfile.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b487e26..0bc6eb4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "that-api-members", - "version": "4.3.0", + "version": "4.3.1", "description": "THATConference.com members service.", "main": "index.js", "engines": { diff --git a/src/lib/findSharedProfile.js b/src/lib/findSharedProfile.js index 204882d..b378442 100644 --- a/src/lib/findSharedProfile.js +++ b/src/lib/findSharedProfile.js @@ -19,7 +19,7 @@ export const findSharedProfile = async ({ memberId, firestore }) => { id: memberRecord.id, firstName: memberRecord.firstName, lastName: memberRecord.lastName, - email: memberRecord.lastName, + email: memberRecord.email, company: memberRecord.company, }; } @@ -43,7 +43,7 @@ export const findSharedProfileProfileLoader = async ({ id: memberRecord.id, firstName: memberRecord.firstName, lastName: memberRecord.lastName, - email: memberRecord.lastName, + email: memberRecord.email, company: memberRecord.company, }; } From 2222eb79a26d8885b8f39ddfc94a13b4208d67ae Mon Sep 17 00:00:00 2001 From: Brett Slaski Date: Thu, 30 Nov 2023 11:34:49 -0600 Subject: [PATCH 2/2] refactor: clean up unused function --- src/graphql/resolvers/mutations/shareWithAddBy.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/graphql/resolvers/mutations/shareWithAddBy.js b/src/graphql/resolvers/mutations/shareWithAddBy.js index 11a0233..78666ff 100644 --- a/src/graphql/resolvers/mutations/shareWithAddBy.js +++ b/src/graphql/resolvers/mutations/shareWithAddBy.js @@ -3,10 +3,7 @@ import * as Sentry from '@sentry/node'; import { dataSources } from '@thatconference/api'; import memberStore from '../../../dataSources/cloudFirestore/member'; import sharingWithStore from '../../../dataSources/cloudFirestore/sharingWith'; -import { - findSharedProfile, - findSharedProfileProfileLoader, -} from '../../../lib/findSharedProfile'; +import { findSharedProfileProfileLoader } from '../../../lib/findSharedProfile'; const dlog = debug('that:api:members:mutation:share-with-add-by'); const orderStore = dataSources.cloudFirestore.order;