app/controllers/maestrano/synchronizations_controller.rb in maestrano-connector-rails-2.0.1 vs app/controllers/maestrano/synchronizations_controller.rb in maestrano-connector-rails-2.0.2.pre.RC1

- old
+ new

@@ -25,9 +25,20 @@ end render_organization_sync(organization, status, 201) end + def update_metadata + tenant = params[:tenant] + uid = params[:group_id] + organization = Maestrano::Connector::Rails::Organization.find_by(uid: uid, tenant: tenant) + return render json: {errors: [{message: 'Organization not found', code: 404}]}, status: :not_found unless organization + + organization.set_instance_metadata + organization.reset_synchronized_entities + render_organization_sync(organization, status, 200) + end + def toggle_sync tenant = params[:tenant] uid = params[:group_id] organization = Maestrano::Connector::Rails::Organization.find_by(uid: uid, tenant: tenant) return render json: {errors: [{message: 'Organization not found', code: 404}]}, status: :not_found unless organization