@koloseum/utils 0.2.25 → 0.2.26
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/utils.js +2 -2
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -873,7 +873,7 @@ export const Utility = {
|
|
|
873
873
|
const { first_name: firstName, last_name: lastName, pseudonym } = user.app_metadata.person_data;
|
|
874
874
|
personData = { firstName, lastName, phone: user.phone, pseudonym };
|
|
875
875
|
}
|
|
876
|
-
const { code, error: validationError } = await Utility.callEdgeFunction(false, supabase, `suprsend/validate-subscriber?user-id=${user.id}`, { method: "POST", headers: { "Content-Type": "application/json" }, body:
|
|
876
|
+
const { code, error: validationError } = await Utility.callEdgeFunction(false, supabase, `suprsend/validate-subscriber?user-id=${user.id}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: personData });
|
|
877
877
|
if (validationError)
|
|
878
878
|
return { error: Utility.customError(code, validationError) };
|
|
879
879
|
// Send welcome notification if needed
|
|
@@ -1515,7 +1515,7 @@ export const Utility = {
|
|
|
1515
1515
|
]
|
|
1516
1516
|
};
|
|
1517
1517
|
// Send welcome notification
|
|
1518
|
-
const { code, error: workflowError } = await Utility.callEdgeFunction(false, supabase, `suprsend/trigger-workflow?user-id=${user.id}`, { method: "POST", headers: { "Content-Type": "application/json" }, body:
|
|
1518
|
+
const { code, error: workflowError } = await Utility.callEdgeFunction(false, supabase, `suprsend/trigger-workflow?user-id=${user.id}`, { method: "POST", headers: { "Content-Type": "application/json" }, body: workflowBody });
|
|
1519
1519
|
// If notification fails, revert the flag and return error
|
|
1520
1520
|
if (workflowError) {
|
|
1521
1521
|
await supabase.auth.updateUser({
|