Skip to content

Commit

Permalink
Fix require scene draft to only apply to scene creation
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Jan 3, 2025
1 parent f6619cb commit 6bf3c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/resolver_mutation_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (r *mutationResolver) SceneEdit(ctx context.Context, input models.SceneEdit
newEdit := models.NewEdit(UUID, currentUser, models.TargetTypeEnumScene, input.Edit)

fac := r.getRepoFactory(ctx)
if config.GetRequireSceneDraft() {
if config.GetRequireSceneDraft() && input.Edit.Operation == models.OperationEnumCreate {
if input.Details != nil && input.Details.DraftID != nil {
draft, err := fac.Draft().Find(*input.Details.DraftID)
if err != nil || draft == nil {
Expand Down

0 comments on commit 6bf3c8c

Please sign in to comment.