Skip to content

Commit be8e5ad

Browse files
authored
Update devVerification.js
fixed bug which allows database entries duplicating
1 parent 9599a22 commit be8e5ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/devVerification.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ module.exports.saveDeveloperVerification = async function (discordId, githubProf
201201
module.exports.checkDuplicateGithubProfile = async function (githubProfileUrl) {
202202
try {
203203
const result = await pool.query(
204-
"SELECT 1 FROM verifications WHERE github_profile = $1 AND role_type = 'Dev'",
204+
"SELECT 1 FROM verifications WHERE github_profile = $1 AND role_type = 'Developer'",
205205
[githubProfileUrl]
206206
);
207207
return result.rowCount > 0;
208208
} catch (err) {
209209
console.error("❌ Failed to check GitHub profile:", err);
210210
return false;
211211
}
212-
};
212+
};

0 commit comments

Comments
 (0)