"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
const Queue_1 = require("../queues/Queue");
const Session_1 = __importDefault(require("../Session"));
function default_1(id, action, forAll, sid) {
    if (sid) {
        Session_1.default.set(sid, { action });
    }
    Queue_1.queues.get(id)?.resolve(action, forAll);
}
