Return team websites under dashboard.

This commit is contained in:
Mike Cao 2023-07-27 13:20:22 -07:00
parent f4aa8f9661
commit a84d9a4c7c
6 changed files with 86 additions and 30 deletions

View file

@ -24,7 +24,9 @@ export default async (
return unauthorized(res);
}
const websites = await getUserWebsites(userId);
const { includeTeams } = req.query;
const websites = await getUserWebsites(userId, { includeTeams });
return ok(res, websites);
}