"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createClient = createClient;
exports.getHandle = getHandle;
const hotmesh_1 = require("@hotmeshio/hotmesh");
const db_1 = require("../../lib/db");
function createClient() {
    return new hotmesh_1.Durable.Client({ connection: (0, db_1.getConnection)() });
}
async function getHandle(taskQueue, workflowName, workflowId) {
    const client = createClient();
    return client.workflow.getHandle(taskQueue, workflowName, workflowId);
}
