Skip to content

Commit

Permalink
fix x5 schedule flow
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyongrui committed Dec 23, 2019
1 parent 231c1b9 commit dc4d33b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public ApiResult schedule(@NonNull @RequestBody String json, @NonNull String app
if (!permissionService.getFlowAccessible(flowId, appId)) {
return ApiResult.fail(NO_PERMISSION_MESSAGE);
}
if (StringUtils.isBlank(cron)) {
flowService.scheduling(flowId);
if (StringUtils.isNotBlank(cron)) {
flowService.updateCron(flowId, cron);
}
flowService.updateCron(flowId, cron);
flowService.scheduling(flowId);
} catch (Exception e) {
log.error("scheduling:", e);
return ApiResult.fail(e.getMessage());
Expand Down

0 comments on commit dc4d33b

Please sign in to comment.