Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed Dec 4, 2023
1 parent 7211f07 commit ebbe34e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/server/graphql/mutations/setTaskEstimate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const setTaskEstimate = {
const {taskId, value, dimensionName, meetingId} = taskEstimate

//AUTH
const [task, meeting, user] = await Promise.all([
const [task, meeting, viewer] = await Promise.all([
dataLoader.get('tasks').load(taskId),
dataLoader.get('newMeetings').load(meetingId),
dataLoader.get('users').loadNonNull(viewerId)
Expand Down Expand Up @@ -374,7 +374,7 @@ const setTaskEstimate = {
}
}

analytics.taskEstimateSet(user, {
analytics.taskEstimateSet(viewer, {
taskId,
meetingId,
dimensionName,
Expand Down
4 changes: 2 additions & 2 deletions packages/server/graphql/mutations/startRetrospective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
meetingType,
dataLoader
)
const [team, user] = await Promise.all([
const [team, viewer] = await Promise.all([
dataLoader.get('teams').loadNonNull(teamId),
dataLoader.get('users').loadNonNull(viewerId)
])
Expand Down Expand Up @@ -142,7 +142,7 @@ export default {
.run()
])
IntegrationNotifier.startMeeting(dataLoader, meetingId, teamId)
analytics.meetingStarted(user, meeting, template)
analytics.meetingStarted(viewer, meeting, template)
const {error} = await createGcalEvent({gcalInput, meetingId, teamId, viewerId, dataLoader})
const data = {teamId, meetingId, hasGcalError: !!error?.message}
publish(SubscriptionChannel.TEAM, teamId, 'StartRetrospectiveSuccess', data, subOptions)
Expand Down

0 comments on commit ebbe34e

Please sign in to comment.