Skip to content
Snippets Groups Projects
Commit 69d6d547 authored by Alexander Kovalev's avatar Alexander Kovalev
Browse files

Merge branch 'feature/MRM-5590-release/v0.20' into 'release/v0.20'

MRM-5590: use new embed type in notification sending

Closes MRM-5590

See merge request mashroom/backend/gmailparser!6
parents 60ec2593 cc6bf0c9
Branches release/v0.20
Tags b0.20.0
No related merge requests found
......@@ -8,9 +8,9 @@ require (
gitlab.mashroom.com/mashroom/backend/account/api v0.0.0-20211227153109-c2bf7bb69dfe
gitlab.mashroom.com/mashroom/backend/common/api v0.0.0-20211227153508-bdc86167c701
gitlab.mashroom.com/mashroom/backend/common/generic v0.0.0-20211227153508-bdc86167c701
gitlab.mashroom.com/mashroom/backend/messaging/api v0.0.0-20211227154856-4871c6459e91
gitlab.mashroom.com/mashroom/backend/messaging/api v0.0.0-20220117090325-319e24f2c92a
gitlab.mashroom.com/mashroom/backend/mixpanel/api v0.0.0-20211227154826-2021212c59fe
gitlab.mashroom.com/mashroom/backend/notification/api v0.0.0-20211227154712-600f6e6c97ed
gitlab.mashroom.com/mashroom/backend/notification/api v0.0.0-20220117092738-2fe749bcc696
gitlab.mashroom.com/mashroom/backend/property/api v0.0.0-20211227154459-d6398dc6b371
golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93
google.golang.org/api v0.30.0
......
......@@ -218,6 +218,11 @@ func sendEventLink(
log.WithError(err).Error("Tracking ViewingInvitation event")
}
authOrigin := "zoopla"
if source == mixpanel.ListingPlatform_LISTING_PLATFORM_RIGHTMOVE {
authOrigin = "rightmove"
}
_, err = NotificationService.SendNotification(ctx, &notification.SendNotificationRequest{
Entity: notification.Entity_ENTITY_PROPERTY_QUESTION,
Action: notification.Action_ACTION_CREATE,
......@@ -241,6 +246,10 @@ func sendEventLink(
EmbedType: messaging.EmbedType_EMBED_TYPE_USER,
EmbedValue: user,
},
{
EmbedType: messaging.EmbedType_EMBED_TYPE_AUTH_ORIGIN,
EmbedValue: authOrigin,
},
},
})
if err != nil {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment