fix: incoming_change boolean field for postgres

This commit is contained in:
Rucha Mahabal 2019-12-09 18:02:54 +05:30
parent 7368562a17
commit 5361467f9d
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ class EventConsumer(Document):
if not self.incoming_change:
self.update_consumer_status()
else:
frappe.db.set_value(self.doctype, self.name, 'incoming_change', False)
frappe.db.set_value(self.doctype, self.name, 'incoming_change', 0)
def update_consumer_status(self):
consumer_site = get_consumer_site(self.callback_url)

View file

@ -30,7 +30,7 @@ class EventProducer(Document):
self.create_custom_fields()
else:
#when producer doc is updated it updates the consumer doc, set flag to avoid deadlock
frappe.db.set_value(self.doctype, self.name, 'incoming_change', False)
frappe.db.set_value(self.doctype, self.name, 'incoming_change', 0)
def create_event_consumer(self):
'''register event consumer on the producer site'''