Skip to content

Commit ce56d03

Browse files
committed
use case-insensitive match for GitHub usernames
1 parent 1feed4c commit ce56d03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/app/control/src/services/db/apps/template-referral.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export async function registerTemplateReferral(
6868
const githubLink = await db.githubLink.findFirst({
6969
where: {
7070
githubUrl: {
71-
contains: githubUsername,
71+
equals: `https://github.com/${githubUsername}`,
72+
mode: 'insensitive',
7273
},
7374
githubType: 'user',
7475
isArchived: false,

0 commit comments

Comments
 (0)