chore: stabilize monorepo build and typescript setup
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CommandService = void 0;
|
||||
const logger_1 = require("./logger");
|
||||
const logger = (0, logger_1.getLogger)("CommandService");
|
||||
class CommandService {
|
||||
constructor(channel) {
|
||||
this.channel = channel;
|
||||
}
|
||||
async send(queue, command) {
|
||||
await this.channel.sendToQueue(queue, Buffer.from(JSON.stringify(command)));
|
||||
logger.debug("Command sent", command);
|
||||
}
|
||||
}
|
||||
exports.CommandService = CommandService;
|
||||
Reference in New Issue
Block a user