chore: update types of privacy policy and terms of use, connect to crm
This commit is contained in:
@@ -38,10 +38,9 @@ function buildInput(source) {
|
||||
displayValue: contact.displayValue,
|
||||
})),
|
||||
};
|
||||
// privacyPolicy / termsOfUse are relations (single types) referenced by id.
|
||||
// They are seeded separately; only forward them when an id is provided.
|
||||
if (source.privacyPolicy?.id) input.privacyPolicy = source.privacyPolicy.id;
|
||||
if (source.termsOfUse?.id) input.termsOfUse = source.termsOfUse.id;
|
||||
// privacyPolicy / termsOfUse are markdown richtext strings.
|
||||
if (source.privacyPolicy != null) input.privacyPolicy = source.privacyPolicy;
|
||||
if (source.termsOfUse != null) input.termsOfUse = source.termsOfUse;
|
||||
return input;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user