@koloseum/utils 0.2.24 → 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 +3 -3
- 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", body: personData });
|
|
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
|
|
@@ -1277,7 +1277,7 @@ export const Utility = {
|
|
|
1277
1277
|
slug: "personal"
|
|
1278
1278
|
},
|
|
1279
1279
|
{
|
|
1280
|
-
name: "Gaming
|
|
1280
|
+
name: "Gaming & Socials",
|
|
1281
1281
|
description: "Review and manage your gaming and social media information.",
|
|
1282
1282
|
slug: "gaming-socials"
|
|
1283
1283
|
},
|
|
@@ -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", body: workflowBody });
|
|
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({
|