-
-
Notifications
You must be signed in to change notification settings - Fork 3k
refactor(backend): improve redis and json.parse type safety with zod (@byseif21) #6481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(backend): improve redis and json.parse type safety with zod (@byseif21) #6481
Conversation
|
Hi @fehmer , thank you for the feedback. Could you please let me know if there is anything else needs changing too? |
start approved quote with -1, throw if unchanged no need for typecast anymore
|
Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. |
use this schema as add result options modify function props structure slightly remove last activity timestamp modifying as its already passed into the function
|
@byseif21 modified the xp leaderboard code a bit, check my latest commit and let me know what you think |
Very nice work, that's even cleaner! seems perfect to me. |
|
Thanks! |
Glad to contribute on that and thanks for the help |
Description
refactored backend files to enhance type safety and reliability using Zod validation and Redis instead of JSON.parse , I tried to avoid the files that isn't necessary tho so I hope I don't miss any or included unnecessary ones!! didn't fully test only verified code compilation and partial tests without Redis!!.
Should Close #5881
Related to #6207