Skip to content

Commit b9896da

Browse files
committed
#3870 also include optional when checking parents
1 parent b14e5bb commit b9896da

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/backend/src/services/onboarding.services.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ export default class OnboardingServices {
5151
{ subtasks: { some: {} } },
5252
{
5353
subtasks: {
54-
every: { OR: [{ usersChecked: { some: { userId: user.userId } } }, { itemType: ChecklistItemType.INFO }] }
54+
every: {
55+
OR: [
56+
{ isOptional: true },
57+
{ usersChecked: { some: { userId: user.userId } } },
58+
{ itemType: ChecklistItemType.INFO }
59+
]
60+
}
5561
}
5662
}
5763
]

0 commit comments

Comments
 (0)