File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
supabase/functions/email-campaigns Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -139,24 +139,3 @@ export function getSenderCredentialIssue(
139139
140140 return null ;
141141}
142-
143- export async function updateMiningSourceCredentials (
144- supabaseAdmin : ReturnType < typeof createSupabaseAdmin > ,
145- email : string ,
146- credentials : Record < string , unknown > ,
147- ) : Promise < boolean > {
148- if ( ! email || typeof email !== "string" ) {
149- console . error ( "Invalid email provided to updateMiningSourceCredentials" ) ;
150- return false ;
151- }
152-
153- const { error } = await supabaseAdmin
154- . from ( "mining_sources" )
155- . update ( { credentials } )
156- . eq ( "email" , email ) ;
157-
158- if ( error ) {
159- console . error ( "Failed to update mining source credentials:" , error ) ;
160- }
161- return ! error ;
162- }
You can’t perform that action at this time.
0 commit comments