Skip to content

Commit

Permalink
Use Master database when calling notification backends (#1703)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisRayM authored and ukanga committed Oct 16, 2019
1 parent e3f6279 commit fba3948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions onadata/apps/messaging/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
from django.utils.module_loading import import_string

from actstream.models import Action
from multidb.pinning import use_master


@use_master
def call_backend(backend, instance_id, backend_options=None):
"""
Call notification backends like MQTT to send messages
Expand Down

0 comments on commit fba3948

Please sign in to comment.