fix(integration): preserver data json formatting on update
This commit is contained in:
parent
e14349d656
commit
ec4bc971c5
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
import json
|
||||
|
||||
import frappe
|
||||
from frappe.integrations.utils import json_handler
|
||||
from frappe.integrations.utils import get_json, json_handler
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ class IntegrationRequest(Document):
|
|||
data = json.loads(self.data)
|
||||
data.update(params)
|
||||
|
||||
self.data = json.dumps(data)
|
||||
self.data = get_json(data)
|
||||
self.status = status
|
||||
self.save(ignore_permissions=True)
|
||||
frappe.db.commit()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue