completionId: cgen-075a200460cb493f828420f18d0dc416
cgen-075a200460cb493f828420f18d0dc416
This commit is contained in:
parent
a3a77da931
commit
591588d585
1 changed files with 14 additions and 0 deletions
|
|
@ -383,6 +383,19 @@ export default function Onboarding() {
|
|||
})
|
||||
: Promise.resolve();
|
||||
|
||||
// Save followed arms
|
||||
const followedArmsPromises = (data.followedArms || []).map((armId) =>
|
||||
fetch(`${API_BASE}/api/user/followed-arms`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
user_id: user.id,
|
||||
arm_id: armId,
|
||||
action: "follow",
|
||||
}),
|
||||
})
|
||||
);
|
||||
|
||||
Promise.allSettled([
|
||||
interests.length
|
||||
? fetch(`${API_BASE}/api/interests`, {
|
||||
|
|
@ -393,6 +406,7 @@ export default function Onboarding() {
|
|||
: Promise.resolve(),
|
||||
aethexAchievementService.checkAndAwardOnboardingAchievement(user.id),
|
||||
creatorProfilePromise,
|
||||
...followedArmsPromises,
|
||||
aethexNotificationService.createNotification(
|
||||
user.id,
|
||||
"success",
|
||||
|
|
|
|||
Loading…
Reference in a new issue