Elenco dei promemoria degli argomenti

Hi, how can I find a list of my active reminders and reminders of other users (when I am admin)? For example, I set some reminders for topics and want to review them.

By reminders do you mean bookmarks? Or topic timers?

I mean topic timers, sorry for unclear.

List of topic reminders needs in case if I want to cancel some reminders. Users could watch or cancel their reminders. Staff could manage all reminders.

Per chiarezza, non esiste un modo per ottenere un elenco di tutti i tuoi argomenti che attualmente hanno timer di argomento, corretto?

Attualmente non tramite l’interfaccia utente principale, ma puoi farlo tramite l’Esploratore di dati:

-- [params]
-- user_id :username

SELECT topic_id
FROM topic_timers
WHERE status_type = 5
  AND user_id = :username
  AND deleted_at IS NULL

Modifica: @wesochuck Ho aggiornato la query per assicurarmi che ignori sia i timer scaduti sia quelli eliminati manualmente. Sebbene execute_at garantisca di intercettare i promemoria impostati per una data futura, includerà anche quelli eliminati manualmente prima della scadenza. Immagino che non sia l’ideale.

Grazie, funziona. Ho anche aggiunto and execute_at > CURRENT_DATE così ottengo solo quelli impostati per il futuro.