mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 01:49:25 +08:00
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:
@ -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