fix: repair restored board layouts
This commit is contained in:
1 parent
bc41125b7f
commit
2657ff4384
4 files changed
+54
-8
No files matched your search
@@ -161,8 +161,9 @@ export const seedDataAsync = async (db: Database) => {
|
||||
await seedProtectedBoardLayoutsAsync(db);
|
||||
};
|
||||
|
||||
export const seedProtectedBoardLayoutsAsync = async (db: Database) => {
|
||||
export const seedProtectedBoardLayoutsAsync = async (db: Database, boardId?: string) => {
|
||||
const dbBoards = await db.query.boards.findMany({
|
||||
where: boardId ? eq(boards.id, boardId) : undefined,
|
||||
with: {
|
||||
layouts: true,
|
||||
items: { with: { layouts: true } },
|
||||
|
||||
Reference in new issue
Block a user