Skip to content

Commit

Permalink
chore: update equality expression for default authorised repository list
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed Feb 9, 2024
1 parent 9f81370 commit 9175f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const start = async () => {
const allowedList = await db.getRepos();

defaultAuthorisedRepoList.forEach(async (x) => {
const found = allowedList.find((y) => y.project == x.project && x.name == y.name);
const found = allowedList.find((y) => y.project === x.project && x.name === y.name);
if (!found) {
await db.createRepo(x);
await db.addUserCanPush('git-proxy', 'admin');
Expand Down

0 comments on commit 9175f5d

Please sign in to comment.