Skip to content

Commit

Permalink
change phone to mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorshephard committed Oct 4, 2023
1 parent 4da5e00 commit 6d6cf57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion signup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ func TestSnapMail(t *testing.T) {
StartDateTime: mustMakeTime(t, time.RFC3339, "2023-09-23T18:00:00.000Z"),
Cell: "555-555-5555",
}
wantJSON := `{"eventType":"SESSION_SIGNUP","payload":{"email":"[email protected]","nameFirst":"Abigail","nameLast":"Test","sessionId":"tMisBjpLQt8H3oD8B","startDateTime":"2023-09-23T18:00:00Z","phone":"555-555-5555"}}`
wantJSON := `{"eventType":"SESSION_SIGNUP","payload":{"email":"[email protected]","nameFirst":"Abigail","nameLast":"Test","sessionId":"tMisBjpLQt8H3oD8B","startDateTime":"2023-09-23T18:00:00Z","mobile":"555-555-5555"}}`

mockSnapServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
assertEqual(t, r.URL.Path, "/events")
Expand Down
4 changes: 2 additions & 2 deletions snapmail.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Payload struct {
NameLast string `json:"nameLast"`
SessionID string `json:"sessionId"`
StartDateTime time.Time `json:"startDateTime,omitempty"`
Phone string `json:"phone"`
Mobile string `json:"mobile"`
}

type signupEvent struct {
Expand Down Expand Up @@ -66,7 +66,7 @@ func (sm *SnapMail) run(ctx context.Context, signup Signup) error {
NameLast: signup.NameLast,
SessionID: signup.SessionID,
StartDateTime: signup.StartDateTime,
Phone: signup.Cell,
Mobile: signup.Cell,
},
}

Expand Down

0 comments on commit 6d6cf57

Please sign in to comment.