mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
Fix build
This commit is contained in:
parent
bbf8b9be86
commit
390d92db92
3 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ export const GET = async (request: NextRequest) => {
|
||||||
|
|
||||||
const getRepos = (domain: string) =>
|
const getRepos = (domain: string) =>
|
||||||
withAuth((session) =>
|
withAuth((session) =>
|
||||||
withOrgMembership(session, domain, async (orgId) => {
|
withOrgMembership(session, domain, async ({ orgId }) => {
|
||||||
const response = await listRepositories(orgId);
|
const response = await listRepositories(orgId);
|
||||||
return response;
|
return response;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export const POST = async (request: NextRequest) => {
|
||||||
|
|
||||||
const postSearch = (request: SearchRequest, domain: string) =>
|
const postSearch = (request: SearchRequest, domain: string) =>
|
||||||
withAuth((session) =>
|
withAuth((session) =>
|
||||||
withOrgMembership(session, domain, async (orgId) => {
|
withOrgMembership(session, domain, async ({ orgId }) => {
|
||||||
const response = await search(request, orgId);
|
const response = await search(request, orgId);
|
||||||
return response;
|
return response;
|
||||||
}))
|
}))
|
||||||
|
|
@ -29,7 +29,7 @@ export const POST = async (request: NextRequest) => {
|
||||||
|
|
||||||
const postSource = (request: FileSourceRequest, domain: string) =>
|
const postSource = (request: FileSourceRequest, domain: string) =>
|
||||||
withAuth(async (session) =>
|
withAuth(async (session) =>
|
||||||
withOrgMembership(session, domain, async (orgId) => {
|
withOrgMembership(session, domain, async ({ orgId }) => {
|
||||||
const response = await getFileSource(request, orgId);
|
const response = await getFileSource(request, orgId);
|
||||||
return response;
|
return response;
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue