Skip to content

Commit

Permalink
Rework away from deprected REQUEST_TIME constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Sep 28, 2023
1 parent b7cac08 commit b794436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_sync.module
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function content_sync_cron() {

$conn = \Drupal::database();
$query = $conn->delete(DatabaseQueue::TABLE_NAME)
->condition('created', REQUEST_TIME - 864000, '<');
->condition('created', \Drupal::time()->getRequestTime() - 864000, '<');

$or = $query->orConditionGroup();
foreach ($prefixes as $prefix) {
Expand Down

0 comments on commit b794436

Please sign in to comment.