Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fixes

Carl-Gerhard Lindesvärd0bc0af817795
diff --git a/apps/dashboard/src/app/api/clerk/webhook/route.ts b/apps/dashboard/src/app/api/clerk/webhook/route.ts
index fcce9557a..a6400d4f1 100644
--- a/apps/dashboard/src/app/api/clerk/webhook/route.ts
+++ b/apps/dashboard/src/app/api/clerk/webhook/route.ts
@@ -37,7 +37,7 @@ export async function POST(request: Request) {
for (const membership of memberships) {
const access = pathOr<string[]>([], ['meta', 'access'], membership);
- db.$transaction([
+ await db.$transaction([
// Update the member to link it to the user
// This will remove the item from invitations
db.member.update({
diff --git a/packages/trpc/src/routers/organization.ts b/packages/trpc/src/routers/organization.ts
index 163e1349c..01452661f 100644
--- a/packages/trpc/src/routers/organization.ts
+++ b/packages/trpc/src/routers/organization.ts
@@ -66,7 +66,11 @@ export const organizationRouter = createTRPCRouter({
);
if (invitationId) {
- await clerkClient.invitations.revokeInvitation(invitationId);
+ await clerkClient.invitations
+ .revokeInvitation(invitationId)
+ .catch(() => {
+ // Ignore errors, this will throw if the invitation is already accepted
+ });
}
return db.member.delete({
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 53a5a9366..28589c6f2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1161,10 +1161,10 @@ importers:
specifier: 0.0.9-beta
version: link:../sdk
expo-application:
- specifier: ^5.3.0
+ specifier: ^5.3.0 || ^5.8.4
version: 5.3.1([email protected])
expo-constants:
- specifier: ^14.4.2
+ specifier: ^14.4.2 || ^15.4.6
version: 14.4.2([email protected])
react-native:
specifier: ^0.73.4
@@ -11653,6 +11653,7 @@ packages:
resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}
+ deprecated: Glob versions prior to v9 are no longer supported
dependencies:
fs.realpath: 1.0.0
inflight: 1.0.6
@@ -11664,6 +11665,7 @@ packages:
resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==}
+ deprecated: Glob versions prior to v9 are no longer supported
dependencies:
fs.realpath: 1.0.0
inflight: 1.0.6