mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Refactor redis calls.
This commit is contained in:
parent
7f3db334f5
commit
d05fd2bd3d
7 changed files with 15 additions and 15 deletions
|
|
@ -25,7 +25,7 @@ export default async (req, res) => {
|
|||
const websites =
|
||||
isAdmin && include_all
|
||||
? await getAllWebsites()
|
||||
: await getUserWebsites({ userId: account.id });
|
||||
: await getUserWebsites({ userId: account?.id });
|
||||
|
||||
return ok(res, websites);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue