refactor(template-engine): align MoveTemplateAsync audit/save order with sibling methods
This commit is contained in:
@@ -174,8 +174,8 @@ public class TemplateService
|
||||
|
||||
template.FolderId = newFolderId;
|
||||
await _repository.UpdateTemplateAsync(template, cancellationToken);
|
||||
await _repository.SaveChangesAsync(cancellationToken);
|
||||
await _auditService.LogAsync(user, "Move", "Template", template.Id.ToString(), template.Name, template, cancellationToken);
|
||||
await _repository.SaveChangesAsync(cancellationToken);
|
||||
|
||||
return Result<Template>.Success(template);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user