mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: inbox issue archival (#1538)
* chore: add triggered by details for notifications * dev: update issue activity json to include extra fields * dev: fix inboc issue archival * dev: update the filter for closing issues
This commit is contained in:
parent
b12a00cf4a
commit
55a1291b1d
@ -49,6 +49,11 @@ def archive_old_issues():
|
|||||||
Q(issue_module__module__target_date__lt=timezone.now().date())
|
Q(issue_module__module__target_date__lt=timezone.now().date())
|
||||||
& Q(issue_module__isnull=False)
|
& Q(issue_module__isnull=False)
|
||||||
),
|
),
|
||||||
|
).filter(
|
||||||
|
Q(issue_inbox__status=1)
|
||||||
|
| Q(issue_inbox__status=-1)
|
||||||
|
| Q(issue_inbox__status=2)
|
||||||
|
| Q(issue_inbox__isnull=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check if Issues
|
# Check if Issues
|
||||||
@ -111,6 +116,11 @@ def close_old_issues():
|
|||||||
Q(issue_module__module__target_date__lt=timezone.now().date())
|
Q(issue_module__module__target_date__lt=timezone.now().date())
|
||||||
& Q(issue_module__isnull=False)
|
& Q(issue_module__isnull=False)
|
||||||
),
|
),
|
||||||
|
).filter(
|
||||||
|
Q(issue_inbox__status=1)
|
||||||
|
| Q(issue_inbox__status=-1)
|
||||||
|
| Q(issue_inbox__status=2)
|
||||||
|
| Q(issue_inbox__isnull=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check if Issues
|
# Check if Issues
|
||||||
|
Loading…
Reference in New Issue
Block a user