From 848a2b1b62b47abb5765bbbd5b819b57db51e571 Mon Sep 17 00:00:00 2001 From: t123yh Date: Fri, 25 Aug 2017 21:31:09 +0800 Subject: [PATCH] Fix priority in frontend. --- src/frontend-syzoj/rmq.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-syzoj/rmq.ts b/src/frontend-syzoj/rmq.ts index eef626d..5dcc4fa 100644 --- a/src/frontend-syzoj/rmq.ts +++ b/src/frontend-syzoj/rmq.ts @@ -35,7 +35,7 @@ async function newChannel(): Promise { export function pushTask(task: any) { publicChannel.sendToQueue(rmqCommon.judgeQueueName, msgpack.encode(task), { - priority: task.priority + priority: task.content.priority }); }