@@ -24,7 +24,9 @@ const SUPABASE_URL = Deno.env.get("SUPABASE_URL") as string;
2424const SUPABASE_SERVICE_ROLE_KEY = Deno . env . get (
2525 "SUPABASE_SERVICE_ROLE_KEY" ,
2626) as string ;
27- const LEADMINER_HASH_SECRET = Deno . env . get ( "LEADMINER_HASH_SECRET" ) as string ;
27+ const LEADMINER_API_HASH_SECRET = Deno . env . get (
28+ "LEADMINER_API_HASH_SECRET" ,
29+ ) as string ;
2830const CAMPAIGN_COMPLIANCE_FOOTER = (
2931 Deno . env . get ( "campaign_compliance_footer" ) ||
3032 Deno . env . get ( "CAMPAIGN_COMPLIANCE_FOOTER" ) ||
@@ -519,7 +521,7 @@ async function getUserMiningSources(authorization: string) {
519521 const { data, error } = await supabase
520522 . schema ( "private" )
521523 . rpc ( "get_user_mining_source_credentials" , {
522- _encryption_key : LEADMINER_HASH_SECRET ,
524+ _encryption_key : LEADMINER_API_HASH_SECRET ,
523525 } ) ;
524526
525527 if ( error ) {
@@ -1652,7 +1654,7 @@ app.post(
16521654 . schema ( "private" )
16531655 . rpc ( "get_mining_source_credentials_for_user" , {
16541656 _user_id : campaign . user_id ,
1655- _encryption_key : LEADMINER_HASH_SECRET ,
1657+ _encryption_key : LEADMINER_API_HASH_SECRET ,
16561658 } ) ;
16571659
16581660 if ( error ) {
0 commit comments