Setting Consents userid null upon deletion
This commit is contained in:
@@ -239,6 +239,8 @@ func (uc *UserController) RegisterUser(c *gin.Context) {
|
||||
|
||||
var regData RegistrationData
|
||||
if err := c.ShouldBindJSON(®Data); err != nil {
|
||||
logger.Error.Printf("Failed initial Binding: %#v", ®Data.User.Membership)
|
||||
logger.Error.Printf("Failed initial Binding: %#v", ®Data.User.Membership.Subscription)
|
||||
utils.HandleValidationError(c, err)
|
||||
return
|
||||
}
|
||||
@@ -293,14 +295,14 @@ func (uc *UserController) RegisterUser(c *gin.Context) {
|
||||
LastName: regData.User.LastName,
|
||||
Email: regData.User.Email,
|
||||
ConsentType: "TermsOfService",
|
||||
UserID: regData.User.ID,
|
||||
UserID: ®Data.User.ID,
|
||||
},
|
||||
{
|
||||
FirstName: regData.User.FirstName,
|
||||
LastName: regData.User.LastName,
|
||||
Email: regData.User.Email,
|
||||
ConsentType: "Privacy",
|
||||
UserID: regData.User.ID,
|
||||
UserID: ®Data.User.ID,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user