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) =>
|
||||
withAuth((session) =>
|
||||
withOrgMembership(session, domain, async (orgId) => {
|
||||
withOrgMembership(session, domain, async ({ orgId }) => {
|
||||
const response = await listRepositories(orgId);
|
||||
return response;
|
||||
})
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export const POST = async (request: NextRequest) => {
|
|||
|
||||
const postSearch = (request: SearchRequest, domain: string) =>
|
||||
withAuth((session) =>
|
||||
withOrgMembership(session, domain, async (orgId) => {
|
||||
withOrgMembership(session, domain, async ({ orgId }) => {
|
||||
const response = await search(request, orgId);
|
||||
return response;
|
||||
}))
|
||||
|
|
@ -29,7 +29,7 @@ export const POST = async (request: NextRequest) => {
|
|||
|
||||
const postSource = (request: FileSourceRequest, domain: string) =>
|
||||
withAuth(async (session) =>
|
||||
withOrgMembership(session, domain, async (orgId) => {
|
||||
withOrgMembership(session, domain, async ({ orgId }) => {
|
||||
const response = await getFileSource(request, orgId);
|
||||
return response;
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue