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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user