UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

18 lines (17 loc) 615 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.enrich = void 0; const searchMethods_1 = require("./searchMethods"); /** * Adds custom user data to the backend workflow record (writes to HASH). * Runs exactly once during workflow execution. * * @param {StringStringType} fields - Key-value fields to enrich the workflow record. * @returns {Promise<boolean>} True when enrichment is completed. */ async function enrich(fields) { const searchSession = await (0, searchMethods_1.search)(); await searchSession.set(fields); return true; } exports.enrich = enrich;