Nested folders: Write to folders table even if the feature toggle is off (#77788)
* Update folders table even if the feature toggle is off * Fix failing test * Apply review feedback * Revert test changes
This commit is contained in:
1 parent
cb711660f1
commit
6b4337a842
3 files changed
+42
-41
No files matched your search
@@ -140,7 +140,7 @@ func (ss *sqlStore) Update(ctx context.Context, cmd folder.UpdateFolderCommand)
|
||||
return folder.ErrInternal.Errorf("failed to get affected row: %w", err)
|
||||
}
|
||||
if affected == 0 {
|
||||
return folder.ErrInternal.Errorf("no folders are updated")
|
||||
return folder.ErrInternal.Errorf("no folders are updated: %w", folder.ErrFolderNotFound)
|
||||
}
|
||||
|
||||
foldr, err = ss.Get(ctx, folder.GetFolderQuery{
|
||||
|
||||
Reference in new issue
Block a user