Skip to content

Commit

Permalink
Merge branch 'reminderAreaModeratorsAutomatic340-714' into 'main'
Browse files Browse the repository at this point in the history
Adiciona envio automático de lembretes a moderadores de área - 340

See merge request softwares-pkp/plugins_ojs/scieloModerationStages!25
  • Loading branch information
JhonathanLepidus committed Nov 5, 2024
2 parents c72c1e1 + 51d8213 commit 17050ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions classes/ModerationStageDAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getAssignmentsByUserGroupAndModerationStage(int $userGroupId, in
->where('sub_s.setting_name', 'currentModerationStage')
->where('sub_s.setting_value', '=', $moderationStage)
->where('sa.user_group_id', '=', $userGroupId)
->select('sa.user_id', 'sa.submission_id');
->select('sa.user_id', 'sa.submission_id', 'sa.date_assigned');

if ($userId) {
$query = $query->where('sa.user_id', '=', $userId);
Expand All @@ -69,7 +69,11 @@ public function getAssignmentsByUserGroupAndModerationStage(int $userGroupId, in

foreach ($result as $row) {
$row = get_object_vars($row);
$assignments[] = ['userId' => $row['user_id'], 'submissionId' => $row['submission_id']];
$assignments[] = [
'userId' => $row['user_id'],
'submissionId' => $row['submission_id'],
'dateAssigned' => $row['date_assigned']
];
}

return $assignments;
Expand Down
2 changes: 1 addition & 1 deletion scheduledTasks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<scheduled_tasks>
<task class="APP\plugins\generic\scieloModerationStages\classes\tasks\SendModerationReminders">
<descr>Send moderation reminders to moderators whose moderation is overdue</descr>
<frequency dayofweek="1"/>
<frequency minute="47"/>
</task>
</scheduled_tasks>
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<application>scieloModerationStages</application>
<type>plugins.generic</type>
<lazy-load>0</lazy-load>
<release>2.1.0.0</release>
<date>2024-11-01</date>
<release>2.1.1.0</release>
<date>2024-11-05</date>
<class>ScieloModerationStagesPlugin</class>
</version>

0 comments on commit 17050ec

Please sign in to comment.