2
0

🚑 (folders) Make sure folders are not all listed in root folder

This commit is contained in:
Baptiste Arnaud
2024-02-06 16:21:36 +01:00
parent 83231e6f13
commit fa2eeff96e

View File

@@ -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',