Pedro Mameluque
Pedro Mameluque
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
Sure, it wasn't anything related to Convex tho. I just removed the full event argument in the validate function. I'll paste the code tomorrow.
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
Nevermind, just found the issue! Really glad for all the help!
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
No description
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
No description
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
Type "{ event: { _id: Id<"events">; _creationTime: number; imageStorageId?: Id<"_storage"> | undefined; is_cancelled?: boolean | undefined; name: string; description: string; location: string; eventDate: number; price: number; totalTickets: number; userId: string; } & { ...; }; }" is not valid.
Type "{ event: { _id: Id<"events">; _creationTime: number; imageStorageId?: Id<"_storage"> | undefined; is_cancelled?: boolean | undefined; name: string; description: string; location: string; eventDate: number; price: number; totalTickets: number; userId: string; } & { ...; }; }" is not valid.
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
this is still in the same error I believe... On npm run dev the build is fully working, but getting this error when trying to deploy with Vercel.. I believe it's the same Id issue.. any thoughts?
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
actly, it's not waiting for the qr code input with the ticket ID and going straight to null.. I'll sort that out! Thank you so much for the help!
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
function ValidateTicket({
event,
}: {
event: Doc<"events"> & {
metrics: Metrics;
};
}) {
const [eventId, setEventId] = useState<string>("");

const [ticketId, setTicketId] = useState("");

const ticket = useQuery(
api.tickets.getTicketWithDetails,
ticketId ? { ticketId: ticketId as Id<"tickets"> } : "skip"
);

if (!ticket) {
return null;
}
function ValidateTicket({
event,
}: {
event: Doc<"events"> & {
metrics: Metrics;
};
}) {
const [eventId, setEventId] = useState<string>("");

const [ticketId, setTicketId] = useState("");

const ticket = useQuery(
api.tickets.getTicketWithDetails,
ticketId ? { ticketId: ticketId as Id<"tickets"> } : "skip"
);

if (!ticket) {
return null;
}
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
I did fixed the error with the type, but now the ticket returning null, before it wasn't.
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
awesome, let me try that
23 replies
CCConvex Community
Created by Pedro Mameluque on 12/6/2024 in #support-community
String into ID !
Thanks! Yes, I'm fetching it with a QR reader
23 replies