Skip to content

Commit 07af8e0

Browse files
authored
refactor: fetch-mining-source edge function with Zod validation (#2675)
* fix: update Zod schema and remove 'all' email filter check * refactor: remove 'all' email filter from fetch-mining-source call * chore: update deno.lock for zod dependency * refactor: update MiningSourceService to remove 'all' and mode field * refactor: fetch-mining-source edge function with Zod validation * style: remove skipcq comments from fetch-mining-source * fix: resolve deepsource issues - use static methods, import specific crypto method
1 parent 4472cfc commit 07af8e0

File tree

7 files changed

+801
-274
lines changed

7 files changed

+801
-274
lines changed

backend/src/db/supabase/MiningSourceService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ export class MiningSourceService implements MiningSources {
3030
{
3131
method: 'POST',
3232
body: {
33-
email: email ?? 'all',
34-
mode: 'service',
33+
...(email && { email }),
3534
user_id: userId
3635
}
3736
}

backend/src/services/MiningSourceService.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)