Skip to content

Commit 84032d9

Browse files
Merge pull request #18 from abhishek97/master
Fix docs and deprecation warnings
2 parents 02b236a + 45877f4 commit 84032d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rabbitmq/jobqueue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ amqp.connect(`amqp://${config.AMQP.USER}:${config.AMQP.PASS}@${config.AMQP.HOST}
5555
* @returns {boolean} true if job was put on queue successfully
5656
*/
5757
function queueJob(job: JudgeJob) {
58-
return jobChannel.sendToQueue(jobQ, new Buffer(JSON.stringify(job)), {persistent: true})
58+
return jobChannel.sendToQueue(jobQ, Buffer.from(JSON.stringify(job)), {persistent: true})
5959
}
6060
export {
6161
queueJob,

src/routes/api/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface RunResponse {
2424
const runPool: {[x: number]: Response} = {}
2525

2626
/**
27-
* @api {post} /run POST /run
27+
* @api {post} /runs POST /runs
2828
* @apiDescription Run a code and get its output
2929
* @apiName PostRun
3030
* @apiGroup Run

0 commit comments

Comments
 (0)