Skip to content

/progress route (clerk disabled for testing)#4

Merged
carlpinto25 merged 3 commits intomainfrom
schema
Mar 25, 2026
Merged

/progress route (clerk disabled for testing)#4
carlpinto25 merged 3 commits intomainfrom
schema

Conversation

@carlpinto25
Copy link
Collaborator

@carlpinto25 carlpinto25 commented Mar 24, 2026

@Kaushik4141
Copy link
Contributor

Kaushik4141 commented Mar 24, 2026

http://localhost:8000/api/v1/progress/
this endpoint also returns same response

@carlpinto25
Copy link
Collaborator Author

carlpinto25 commented Mar 24, 2026

http://localhost:8000/api/v1/progress/ this endpoint also returns same response

image

can u send a pic

@Kaushik4141
Copy link
Contributor

image

@Kaushik4141
Copy link
Contributor

can i know why did u remove qrSlug
image

@carlpinto25
Copy link
Collaborator Author

can i know why did u remove qrSlug image

since the d1 databse follows schema which ashwil gave i matched it to that,ill add it

@Kaushik4141
Copy link
Contributor

Kaushik4141 commented Mar 24, 2026

can i know why did u remove qrSlug image

since the d1 databse follows schema which ashwil gave i matched it to that,ill add it

but without qrSlug we can't get stalls from the qr

@carlpinto25
Copy link
Collaborator Author

carlpinto25 commented Mar 24, 2026

can i know why did u remove qrSlug image

since the d1 databse follows schema which ashwil gave i matched it to that,ill add it

but without qrSlug we can't get stalls from the qr

i added qr_slug in d1 ,since the stall id could be used to get the stall from qr ,tho qr_slug is better so will go with that

@carlpinto25
Copy link
Collaborator Author

CREATE TABLE stalls (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
description TEXT,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
, logo TEXT, qr_slug TEXT)

@carlpinto25
Copy link
Collaborator Author

carlpinto25 commented Mar 24, 2026

image

this is becuase it passes ur token if u did without auth u would get 404,idk y its showing 1 for progress(could be mistake with count)
image
if u pass the id directly it will give the progress normally (this is only for testing)

@carlpinto25
Copy link
Collaborator Author

btw how did you get the auth and cookie

@Kaushik4141
Copy link
Contributor

btw how did you get the auth and cookie

clerk.mp4

@Kaushik4141
Copy link
Contributor

the session is expired within 60 sec

@Kaushik4141
Copy link
Contributor

Kaushik4141 commented Mar 24, 2026

CREATE TABLE stalls ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, description TEXT, created_at DATETIME DEFAULT CURRENT_TIMESTAMP , logo TEXT, qr_slug TEXT)

can add qrSlug in schema.ts also

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 24, 2026

Deploying voting-system with  Cloudflare Pages  Cloudflare Pages

Latest commit: 72541f8
Status: ✅  Deploy successful!
Preview URL: https://3895f029.voting-system-aud.pages.dev
Branch Preview URL: https://schema.voting-system-aud.pages.dev

View logs

@carlpinto25
Copy link
Collaborator Author

carlpinto25 commented Mar 24, 2026

btw how did you get the auth and cookie

clerk.mp4

ohh thanks

@carlpinto25
Copy link
Collaborator Author

carlpinto25 commented Mar 24, 2026

for refernce
image

image image

@carlpinto25 carlpinto25 merged commit d903e77 into main Mar 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants