Use dynamic query instead of SQL Query for the count

Created on 12 January 2023, over 2 years ago
Updated 4 December 2023, over 1 year ago

Problem/Motivation

SELECT COUNT(*) FROM {watchdog_mailer_history} WHERE timestamp BETWEEN UNIX_TIMESTAMP(DATE_ADD(NOW(), INTERVAL -1 HOUR)) AND UNIX_TIMESTAMP()
should be written as dynamic query instead to match best practices.

See https://www.drupal.org/docs/8/api/database-api/dynamic-queries/introduct... โ†’

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024