[hub] Move sync, correct legacy code

This commit is contained in:
Prateeksha Singh
2018-08-06 17:48:45 +05:30
parent a5f6e54b70
commit b614ece991
3 changed files with 20 additions and 5 deletions

View File

@@ -10,3 +10,8 @@ def enable_hub():
hub_settings.register()
frappe.db.commit()
return hub_settings
@frappe.whitelist()
def sync():
hub_settings = frappe.get_doc('Hub Settings')
hub_settings.sync()