Issue 3543 - Webhooks: problem extracting the story points from a user story
parent
ea842a0c56
commit
93376a5fbb
|
@ -15,6 +15,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.db import connection
|
||||
from django.conf import settings
|
||||
from django.utils import timezone
|
||||
|
||||
|
@ -62,6 +63,6 @@ def on_new_history_entry(sender, instance, created, **kwargs):
|
|||
args = [webhook["id"], webhook["url"], webhook["key"], obj] + extra_args
|
||||
|
||||
if settings.CELERY_ENABLED:
|
||||
task.delay(*args)
|
||||
connection.on_commit(lambda: task.delay(*args))
|
||||
else:
|
||||
task(*args)
|
||||
connection.on_commit(lambda: task(*args))
|
||||
|
|
|
@ -23,7 +23,7 @@ from .. import factories as f
|
|||
|
||||
from taiga.projects.history import services
|
||||
|
||||
pytestmark = pytest.mark.django_db
|
||||
pytestmark = pytest.mark.django_db(transaction=True)
|
||||
|
||||
|
||||
def test_new_object_with_one_webhook(settings):
|
||||
|
|
Loading…
Reference in New Issue