Compare commits

...
Author SHA1 Message Date
Sonarly Claude CodeandClaude Opus 4.6 7d62f50f5e fix: skip fields with missing metadata in formatData instead of throwing
When a workspace hasn't run the v1.18 migration yet, the throttleRetryAfter
field metadata doesn't exist. The formatData utility was throwing an error
when encountering fields without metadata, crashing the entire message
import job. Changed to gracefully skip fields without metadata, as these
fields won't exist in the database either during the migration transition.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-18 16:22:07 +00:00
@@ -52,9 +52,7 @@ export function formatData<T>(
});
if (!fieldMetadata) {
throw new Error(
`Field metadata for field "${key}" is missing in object metadata ${flatObjectMetadata.nameSingular}`,
);
continue;
}
if (isCompositeFieldMetadataType(fieldMetadata.type)) {