updated store.Services and friends (#103)

This commit is contained in:
Michael Quigley
2022-11-22 11:14:58 -05:00
parent cbb9ec833f
commit 6184e0e450
4 changed files with 30 additions and 21 deletions

View File

@ -93,12 +93,12 @@ func (h *sharePublicHandler) Handle(params service.ShareParams, principal *rest_
frontendUrl := h.proxyUrl(svcName)
sid, err := str.CreateService(envId, &store.Service{
ZId: svcZId,
Name: svcName,
Frontend: frontendUrl,
Backend: params.Body.BackendProxyEndpoint,
ShareMode: "public",
BackendMode: "proxy",
ZId: svcZId,
Name: svcName,
ShareMode: "public",
BackendMode: "proxy",
FrontendEndpoint: &frontendUrl,
BackendProxyEndpoint: &params.Body.BackendProxyEndpoint,
}, tx)
if err != nil {
logrus.Errorf("error creating service record: %v", err)