@cadenza.io/service 2.17.40 → 2.17.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6208,6 +6208,13 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
6208
6208
  `Prepare graph sync insert execution for ${tableName}`,
6209
6209
  (ctx) => ({
6210
6210
  ...ctx,
6211
+ __resolverOriginalContext: {
6212
+ ...ctx
6213
+ },
6214
+ __resolverQueryData: buildSyncInsertQueryData(
6215
+ ctx,
6216
+ queryData
6217
+ ),
6211
6218
  queryData: buildSyncInsertQueryData(
6212
6219
  ctx,
6213
6220
  queryData
@@ -6225,8 +6232,15 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
6225
6232
  if (!ctx.__resolverRequestId) {
6226
6233
  return false;
6227
6234
  }
6228
- emit(executionResolvedSignal, ctx);
6229
- return ctx;
6235
+ const originalContext = ctx.__resolverOriginalContext && typeof ctx.__resolverOriginalContext === "object" ? ctx.__resolverOriginalContext : {};
6236
+ const originalQueryData = ctx.__resolverQueryData && typeof ctx.__resolverQueryData === "object" ? ctx.__resolverQueryData : void 0;
6237
+ const normalizedContext = {
6238
+ ...originalContext,
6239
+ ...ctx,
6240
+ queryData: ctx.queryData && typeof ctx.queryData === "object" ? ctx.queryData : originalQueryData
6241
+ };
6242
+ emit(executionResolvedSignal, normalizedContext);
6243
+ return normalizedContext;
6230
6244
  },
6231
6245
  `Resolves signal-driven ${tableName} graph-sync insert execution.`,
6232
6246
  {