[hub] Move sync, correct legacy code
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user