Start renaming Storage methods

Signed-off-by: Sven Dowideit <sven.dowideit@portainer.io>
This commit is contained in:
Sven Dowideit
2021-10-02 13:27:05 +10:00
parent d7b11a06ab
commit aead4907dc
57 changed files with 115 additions and 115 deletions

View File

@@ -215,7 +215,7 @@ func (handler *Handler) endpointCreate(w http.ResponseWriter, r *http.Request) *
}
}
err = handler.DataStore.EndpointRelation().CreateEndpointRelation(relationObject)
err = handler.DataStore.EndpointRelation().Create(relationObject)
if err != nil {
return &httperror.HandlerError{http.StatusInternalServerError, "Unable to persist the relation object inside the database", err}
}
@@ -481,7 +481,7 @@ func (handler *Handler) saveEndpointAndUpdateAuthorizations(endpoint *portainer.
AllowStackManagementForRegularUsers: true,
}
err := handler.DataStore.Endpoint().CreateEndpoint(endpoint)
err := handler.DataStore.Endpoint().Create(endpoint)
if err != nil {
return err
}