Fixed issue with accessing user dashboards. Closes #1590

This commit is contained in:
Mike Cao committed 2022-10-25 15:48:49 -07:00
1 parent 46a18f2918
commit 8b64ef1a4e
8 files changed
+33 -25

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ export async function getAccounts() {
isAdmin: true,
createdAt: true,
updatedAt: true,
accountUuid: true,
},
});
}
+2 -4
View File
@@ -1,10 +1,8 @@
import prisma from 'lib/prisma';
export async function getUserWebsites(userId) {
export async function getUserWebsites(where) {
return prisma.client.website.findMany({
where: {
userId,
},
where,
orderBy: {
name: 'asc',
},