From a56eadb93ed1ceffb8ea63214a5c4cbc2d0f2e3d Mon Sep 17 00:00:00 2001 From: Manuel Astudillo Date: Fri, 28 Jan 2022 12:46:30 +0800 Subject: [PATCH] feat(commands): add support for clean --- lib/socket.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/socket.ts b/lib/socket.ts index c66e6c7..7d6199c 100644 --- a/lib/socket.ts +++ b/lib/socket.ts @@ -252,6 +252,10 @@ export const Socket = ( await (queue).obliterate(); respond(msg.id); break; + case "clean": + await (queue).clean(data.grace, data.status, data.limit); + respond(msg.id); + break; default: console.error( `Missing command ${data.cmd}. Too old version of taskforce-connector?`