fix: cycle date check endpoint (#748)

This commit is contained in:
pablohashescobar 2023-04-10 10:58:32 +05:30 committed by GitHub
parent bd9de0c213
commit 62e736677a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,7 +368,8 @@ class CycleDateCheckEndpoint(BaseAPIView):
cycles = Cycle.objects.filter( cycles = Cycle.objects.filter(
Q(start_date__lte=start_date, end_date__gte=start_date) Q(start_date__lte=start_date, end_date__gte=start_date)
| Q(start_date__gte=end_date, end_date__lte=end_date), | Q(start_date__lte=end_date, end_date__gte=end_date)
| Q(start_date__gte=start_date, end_date__lte=end_date),
workspace__slug=slug, workspace__slug=slug,
project_id=project_id, project_id=project_id,
) )