feat: add board preview
This commit is contained in:
1 parent
b888fad1fc
commit
7251938294
3 files changed
+112
-1
No files matched your search
@@ -64,6 +64,7 @@ export const boardRouter = createTRPCRouter({
|
||||
columns: {
|
||||
id: true,
|
||||
name: true,
|
||||
columnCount: true,
|
||||
isPublic: true,
|
||||
},
|
||||
with: {
|
||||
@@ -77,6 +78,16 @@ export const boardRouter = createTRPCRouter({
|
||||
userPermissions: {
|
||||
where: eq(boardUserPermissions.userId, ctx.session?.user.id ?? ""),
|
||||
},
|
||||
sections: {
|
||||
with: {
|
||||
items: {
|
||||
columns: {
|
||||
options: false,
|
||||
sectionId: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
groupPermissions: {
|
||||
where:
|
||||
permissionsOfCurrentUserGroupsWhenPresent.length >= 1
|
||||
|
||||
Reference in new issue
Block a user