chore: update src/pages/api/repos/[owner]/[repo]/wiki/[slug]/revisions/index.ts

swadhinbiswas committed 8 months ago
0b2c5eb
1 parent 9e13cb9
commit 0b2c5eb
1 file changed
+0 -1
▼src/pages/api/repos/[owner]/[repo]/wiki/[slug]/revisions/index.ts
+0-1
16
16
const repoData = await getRepoAndUser(request, owner, repo);
17
17
18
18
if (!repoData) return notFound("Repository not found");
19
- if (repoData.permission === "none") return notFound("Repository not found");
20
19
21
20
const page = await db.query.wikiPages.findFirst({
22
21
where: and(
23
22