Files
simple-mail-cleaner/backend/node_modules/bullmq/dist/esm/commands/includes/updateJobFields.lua
2026-01-22 15:49:12 +01:00

12 lines
322 B
Lua

--[[
Function to update a bunch of fields in a job.
]]
local function updateJobFields(jobKey, msgpackedFields)
if msgpackedFields and #msgpackedFields > 0 then
local fieldsToUpdate = cmsgpack.unpack(msgpackedFields)
if fieldsToUpdate then
rcall("HMSET", jobKey, unpack(fieldsToUpdate))
end
end
end