@@ -64,8 +64,10 @@ func GetUserForRecipeId(userId string, recipeId string) (user dashboardmodels.Us
6464 userToReturn .FirstName = ""
6565 userToReturn .LastName = ""
6666 userToReturn .Email = response .Email
67- userToReturn .ThirdParty .Id = response .ThirdParty .ID
68- userToReturn .ThirdParty .UserId = response .ThirdParty .UserID
67+ userToReturn .ThirdParty = & dashboardmodels.ThirdParty {
68+ Id : response .ThirdParty .ID ,
69+ UserId : response .ThirdParty .UserID ,
70+ }
6971 }
7072
7173 if userToReturn == (dashboardmodels.UserType {}) {
@@ -77,8 +79,10 @@ func GetUserForRecipeId(userId string, recipeId string) (user dashboardmodels.Us
7779 userToReturn .FirstName = ""
7880 userToReturn .LastName = ""
7981 userToReturn .Email = tpepResponse .Email
80- userToReturn .ThirdParty .Id = tpepResponse .ThirdParty .ID
81- userToReturn .ThirdParty .UserId = tpepResponse .ThirdParty .UserID
82+ userToReturn .ThirdParty = & dashboardmodels.ThirdParty {
83+ Id : tpepResponse .ThirdParty .ID ,
84+ UserId : tpepResponse .ThirdParty .UserID ,
85+ }
8286 }
8387 }
8488 } else if recipeId == passwordless .RECIPE_ID {
@@ -133,9 +137,9 @@ func IsRecipeInitialised(recipeId string) bool {
133137 }
134138
135139 if ! isRecipeInitialised {
136- _ , tpepErr := thirdpartyemailpassword .GetRecipeInstanceOrThrowError ()
140+ _ , err := thirdpartyemailpassword .GetRecipeInstanceOrThrowError ()
137141
138- if tpepErr == nil {
142+ if err == nil {
139143 isRecipeInitialised = true
140144 }
141145 }
@@ -147,9 +151,9 @@ func IsRecipeInitialised(recipeId string) bool {
147151 }
148152
149153 if ! isRecipeInitialised {
150- _ , tppErr := thirdpartypasswordless .GetRecipeInstanceOrThrowError ()
154+ _ , err := thirdpartypasswordless .GetRecipeInstanceOrThrowError ()
151155
152- if tppErr == nil {
156+ if err == nil {
153157 isRecipeInitialised = true
154158 }
155159 }
@@ -161,17 +165,17 @@ func IsRecipeInitialised(recipeId string) bool {
161165 }
162166
163167 if ! isRecipeInitialised {
164- _ , tpepErr := thirdpartyemailpassword .GetRecipeInstanceOrThrowError ()
168+ _ , err := thirdpartyemailpassword .GetRecipeInstanceOrThrowError ()
165169
166- if tpepErr == nil {
170+ if err == nil {
167171 isRecipeInitialised = true
168172 }
169173 }
170174
171175 if ! isRecipeInitialised {
172- _ , tpepErr := thirdpartypasswordless .GetRecipeInstanceOrThrowError ()
176+ _ , err := thirdpartypasswordless .GetRecipeInstanceOrThrowError ()
173177
174- if tpepErr == nil {
178+ if err == nil {
175179 isRecipeInitialised = true
176180 }
177181 }
0 commit comments