Skip to content

Commit 848bfdd

Browse files
Update scheduled-jobs.md
1 parent 323cb68 commit 848bfdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/communication-services/how-tos/router-sdk/scheduled-jobs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ if (eventGridEvent.EventType == "Microsoft.Communication.RouterJobWaitingForActi
152152
{
153153
// Perform required actions here
154154

155-
client.updateJob(eventGridEvent.getData().toObject(new TypeReference<Map<String, Object>>() {
155+
job = client.updateJob(eventGridEvent.getData().toObject(new TypeReference<Map<String, Object>>() {
156156
}).get("JobId").toString(), BinaryData.fromObject(new RouterJob()
157157
.setMatchingMode(new QueueAndMatchMode())
158-
.setPriority(100)), null);
158+
.setPriority(100)), null).toObject(RouterJob.class);
159159
}
160160
```
161161

0 commit comments

Comments
 (0)