Skip to content

Commit 9ed8515

Browse files
committed
Merge branch 'main' into improve-endpoint-status-codes
2 parents 498d3cb + 9f24d3f commit 9ed8515

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
lines changed

package-lock.json

Lines changed: 44 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/proxy/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class Proxy {
5252
const allowedList: Repo[] = await getRepos();
5353

5454
defaultAuthorisedRepoList.forEach(async (x) => {
55-
const found = allowedList.find((y) => y.project === x.project && x.name === y.name);
55+
const found = allowedList.find((y) => y.url === x.url);
5656
if (!found) {
5757
const repo = await createRepo(x);
5858
await addUserCanPush(repo._id!, 'admin');

0 commit comments

Comments
 (0)