feat: Introduce multi-platform architecture for Electron and Web clients with shared UI components, Convex backend for messaging, and integrated search functionality.
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
Some checks failed
Build and Release / build-and-release (push) Has been cancelled
This commit is contained in:
@@ -108,9 +108,10 @@ export const createUserWithProfile = mutation({
|
||||
return { error: "Invite code required" };
|
||||
}
|
||||
|
||||
const inviteCode = args.inviteCode!;
|
||||
const invite = await ctx.db
|
||||
.query("invites")
|
||||
.withIndex("by_code", (q) => q.eq("code", args.inviteCode))
|
||||
.withIndex("by_code", (q) => q.eq("code", inviteCode))
|
||||
.unique();
|
||||
|
||||
if (!invite) {
|
||||
|
||||
Reference in New Issue
Block a user