Skip to content

Commit

Permalink
INPAINT
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Jul 10, 2024
1 parent 9a630b7 commit ff5ad76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Midjourney.Infrastructure/Services/TaskServiceImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ public SubmitResultVO SubmitAction(TaskInfo task, SubmitActionDTO submitAction)
if (submitAction.CustomId.StartsWith("MJ::CustomZoom::")
|| submitAction.CustomId.StartsWith("MJ::Inpaint::"))
{

// 如果是局部重绘,则设置任务状态为进行中
if (task.Action == TaskAction.INPAINT)
{
task.Status = TaskStatus.IN_PROGRESS;
}

task.SetProperty(Constants.TASK_PROPERTY_MESSAGE_ID, targetTask.MessageId);
task.SetProperty(Constants.TASK_PROPERTY_FLAGS, messageFlags);

Expand Down

0 comments on commit ff5ad76

Please sign in to comment.