Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for scheduled messages #7378

Closed
wants to merge 2 commits into from
Closed

Add support for scheduled messages #7378

wants to merge 2 commits into from

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

Update the schedule worker to support messages

Test Plan

Manual

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@stnguyen90
Copy link
Contributor Author

getDocument() shouldn't have a filter query:

$provider = $dbForProject->getDocument('providers', $providerId, [Query::equal('enabled', [true])]);

@stnguyen90
Copy link
Contributor Author

Wherever we check for providers, we need to check whether they're enabled. e.g.:

if (!$providerId && $primaryProvider instanceof Document && !$primaryProvider->isEmpty()) {

if ($provider->isEmpty()) {

@stnguyen90 stnguyen90 mentioned this pull request Jan 11, 2024
2 tasks
@abnegate abnegate closed this Jan 11, 2024
@abnegate abnegate deleted the scheduling-temp branch January 11, 2024 02:38
@stnguyen90 stnguyen90 mentioned this pull request Jan 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants