feat: assign members on new card

This commit is contained in:
Henry
2024-03-24 11:18:31 +00:00
parent 9a89a31d6a
commit f524d49d7f
4 changed files with 124 additions and 11 deletions

View File

@@ -43,6 +43,25 @@ export const boardRouter = createTRPCRouter({
name: true,
},
with: {
workspace: {
columns: {
publicId: true,
},
with: {
members: {
columns: {
publicId: true,
},
with: {
user: {
columns: {
name: true
}
}
}
}
}
},
lists: {
orderBy: [asc(lists.index)],
where: isNull(cards.deletedAt),