🚑 (folders) Make sure folders are not all listed in root folder
This commit is contained in:
@@ -46,7 +46,7 @@ export const listFolders = authenticatedProcedure
|
|||||||
const folders = await prisma.dashboardFolder.findMany({
|
const folders = await prisma.dashboardFolder.findMany({
|
||||||
where: {
|
where: {
|
||||||
workspaceId,
|
workspaceId,
|
||||||
parentFolderId,
|
parentFolderId: parentFolderId ?? null,
|
||||||
},
|
},
|
||||||
orderBy: {
|
orderBy: {
|
||||||
createdAt: 'desc',
|
createdAt: 'desc',
|
||||||
|
|||||||
Reference in New Issue
Block a user