Add move endpoint into folder service (#58575)

* add move endpoint

* change signatures
This commit is contained in:
ying-jeanne authored and GitHub committed 2022-11-10 09:06:52 -05:00
1 parent 778337e522
commit b13b58ebf8
7 files changed
+46 -8

No files matched your search

-3
View File
@@ -376,9 +376,6 @@ func (s *Service) DeleteFolder(ctx context.Context, cmd *folder.DeleteFolderComm
}
func (s *Service) Move(ctx context.Context, cmd *folder.MoveFolderCommand) (*folder.Folder, error) {
// check the flag, if old - do whatever did before
// for new only the store
foldr, err := s.Get(ctx, &folder.GetFolderQuery{
UID: &cmd.UID,
OrgID: cmd.OrgID,