mirror of
https://github.com/hay-kot/homebox.git
synced 2025-10-07 06:27:22 +00:00
fix import bug and add ref support (#88)
* fix import bug and add ref support * fix calls * add docs
This commit is contained in:
parent
5596740cd2
commit
dbaaf4ad0a
8 changed files with 118 additions and 57 deletions
|
@ -220,7 +220,7 @@ func (ctrl *V1Controller) HandleItemsImport() http.HandlerFunc {
|
|||
|
||||
user := services.UseUserCtx(r.Context())
|
||||
|
||||
err = ctrl.svc.Items.CsvImport(r.Context(), user.GroupID, data)
|
||||
_, err = ctrl.svc.Items.CsvImport(r.Context(), user.GroupID, data)
|
||||
if err != nil {
|
||||
log.Err(err).Msg("failed to import items")
|
||||
server.RespondServerError(w)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue