record share identifier for access private frontends (#278)

This commit is contained in:
Michael Quigley 2023-03-29 14:21:02 -04:00 committed by Kenneth Bingham
parent c8dbb9c7e4
commit 78c3fd7a78
No known key found for this signature in database
GPG Key ID: 31709281860130B6

View File

@ -61,7 +61,7 @@ func (h *accessHandler) Handle(params share.AccessParams, principal *rest_model_
return share.NewAccessInternalServerError()
}
if _, err := str.CreateFrontend(envId, &store.Frontend{Token: feToken, ZId: envZId}, tx); err != nil {
if _, err := str.CreateFrontend(envId, &store.Frontend{PrivateShareId: &shr.Id, Token: feToken, ZId: envZId}, tx); err != nil {
logrus.Errorf("error creating frontend record for user '%v': %v", principal.Email, err)
return share.NewAccessInternalServerError()
}