@cadenza.io/service 2.17.72 → 2.17.73

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.
package/dist/index.js CHANGED
@@ -8932,6 +8932,17 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
8932
8932
  ctx,
8933
8933
  queryData
8934
8934
  );
8935
+ if ((tableName === "signal_registry" || tableName === "directional_task_graph_map") && originalQueryData.data && typeof originalQueryData.data === "object" && !Array.isArray(originalQueryData.data) && Object.keys(originalQueryData.data).length === 0) {
8936
+ console.warn(
8937
+ "[CADENZA_SYNC_EMPTY_INSERT]",
8938
+ summarizeSyncDebugValue({
8939
+ tableName,
8940
+ queryData: originalQueryData,
8941
+ ctx,
8942
+ joinedContexts: Array.isArray(ctx.joinedContexts) ? ctx.joinedContexts : []
8943
+ })
8944
+ );
8945
+ }
8935
8946
  return buildSyncExecutionEnvelope(
8936
8947
  ctx,
8937
8948
  originalQueryData