dequeue before enqueue
This commit is contained in:
parent
2e5a0b7bfd
commit
90dc44d926
@ -38,9 +38,11 @@ public class CampaignController implements SessionAbility {
|
||||
@PathVariable("account")
|
||||
final String account,
|
||||
@Valid @RequestBody final ReqCampaign form) {
|
||||
|
||||
final Agent agent = agentService.findValid(
|
||||
form.getTenantId(), account);
|
||||
agentStatusService.findValidAgentStatus(agent);
|
||||
commonCampaignService.dequeue(agent);
|
||||
commonCampaignService.enqueue(form.getCampaignKey(), agent);
|
||||
|
||||
// agent ready
|
||||
|
Loading…
x
Reference in New Issue
Block a user