Skip to content

Commit 6deaa4e

Browse files
authored
Merge pull request #2642 from ankaboot-source/docs/update-readme-features
fix(campaigns): remove duplicate updateMiningSourceCredentials function
2 parents 8df58ac + 93213f0 commit 6deaa4e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

supabase/functions/email-campaigns/sender-options.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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-
}

0 commit comments

Comments
 (0)