Skip to content

Commit

Permalink
chore: un comment team creation
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Apr 29, 2024
1 parent eb19329 commit 7aba42d
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/pages/join/[joinCode].astro
Original file line number Diff line number Diff line change
Expand Up @@ -73,29 +73,29 @@ if (!team) {
}
if (session && session.user.role === "guest") {
// await db.delete(Invite).where(like(Invite.verificationCode, joinCode));
// await db.insert(Organization).values({
// team: session.team,
// name: session.teamName,
// image: session.teamImage,
// });
// await db.insert(Event).values({
// name: "Welcome to MagicSnap! 🎉",
// date: new Date(Date.now() + 1000 * 60 * 60 * 2),
// team: session.team,
// comments: "A default event created by workspace connection",
// location: "MagicSnap",
// statusGoing: session.user.id,
// statusNotGoing: "",
// statusMaybe: "",
// });
// await logsnag.track({
// channel: "join-code",
// event: "create-team",
// icon: "🪄",
// user_id: session.user.id,
// notify: true,
// });
await db.delete(Invite).where(like(Invite.verificationCode, joinCode));
await db.insert(Organization).values({
team: session.team,
name: session.teamName,
image: session.teamImage,
});
await db.insert(Event).values({
name: "Welcome to MagicSnap! 🎉",
date: new Date(Date.now() + 1000 * 60 * 60 * 2),
team: session.team,
comments: "A default event created by workspace connection",
location: "MagicSnap",
statusGoing: session.user.id,
statusNotGoing: "",
statusMaybe: "",
});
await logsnag.track({
channel: "join-code",
event: "create-team",
icon: "🪄",
user_id: session.user.id,
notify: true,
});
}
---

Expand Down

0 comments on commit 7aba42d

Please sign in to comment.