mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
merge: resolve conflict with dev in useRateLimitManager.ts
Keep type assertions for email param and user_email response field since the generated Orval types haven't been regenerated yet to include these backend fields.
This commit is contained in:
@@ -49,6 +49,9 @@ export function useRateLimitManager() {
|
||||
setRateLimitData(null);
|
||||
|
||||
try {
|
||||
// The backend accepts an optional `email` query-param and returns
|
||||
// `user_email` in the response, but the generated Orval types haven't
|
||||
// been regenerated yet -- use type assertions until they are updated.
|
||||
const params = looksLikeEmail(trimmed)
|
||||
? ({ email: trimmed } as unknown as { user_id: string })
|
||||
: { user_id: trimmed };
|
||||
|
||||
Reference in New Issue
Block a user