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.
明確にしておきますが、現在トピックタイマーが設定されているすべてのトピックのリストを取得する方法はない、ということで合っていますか?
現在、メインのユーザーインターフェースからはできませんが、Data Explorer を通じて実行可能です。
-- [params]
-- user_id :username
SELECT topic_id
FROM topic_timers
WHERE status_type = 5
AND user_id = :username
AND deleted_at IS NULL
編集: @wesochuck 期限切れと手動で削除されたタイマーの両方を無視するようにクエリを更新しました。execute_at は将来の日時に設定されたリマインダーを確実に取得しますが、期限切れになる前に手動で削除されたものも含めてしまいます。これは望ましくないでしょう。
ありがとうございます、問題なく動作します。また、and execute_at > CURRENT_DATE を追加したため、未来に設定されたもののみ取得されます。