Nested folders: Allow renaming a folder multiple times (#68379)

Return folder version in response that is required for updating
the entry in the dashboard table.
This commit is contained in:
Sofia Papagiannaki 2023-05-16 16:41:14 +03:00 committed by GitHub
parent 5aefe4e030
commit d458292b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,6 +155,7 @@ func (s *Service) Get(ctx context.Context, cmd *folder.GetFolderQuery) (*folder.
// always expose the dashboard store sequential ID
f.ID = dashFolder.ID
f.Version = dashFolder.Version
return f, err
}
@ -351,6 +352,7 @@ func (s *Service) Update(ctx context.Context, cmd *folder.UpdateFolderCommand) (
// always expose the dashboard store sequential ID
foldr.ID = dashFolder.ID
foldr.Version = dashFolder.Version
return foldr, nil
}