Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rabbitmq/jobqueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ amqp.connect(`amqp://${config.AMQP.USER}:${config.AMQP.PASS}@${config.AMQP.HOST}
* @returns {boolean} true if job was put on queue successfully
*/
function queueJob(job: JudgeJob) {
return jobChannel.sendToQueue(jobQ, new Buffer(JSON.stringify(job)), {persistent: true})
return jobChannel.sendToQueue(jobQ, Buffer.from(JSON.stringify(job)), {persistent: true})
}
export {
queueJob,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/api/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface RunResponse {
const runPool: {[x: number]: Response} = {}

/**
* @api {post} /run POST /run
* @api {post} /runs POST /runs
* @apiDescription Run a code and get its output
* @apiName PostRun
* @apiGroup Run
Expand Down