app/services/external_apis/dmphub_service.rb
# Bump the last_notified timestamp on the subscription
Bump the last_notified timestamp on the subscription
Bump the last_notified timestamp on the subscription
def update_subscription(plan:, doi:)
        Rails.logger.warn "DMPHubService - No ApiClient available for 'dmphub'!" unless api_client.present?
        return plan unless plan.present? && doi.present? && callback_path.present? && api_client.present?
        Subscription.where(plan: plan, subscriber: api_client).update(last_notified: Time.now)
      end
def update_subscription ( plan : , doi : ) Rails . logger . warn "DMPHubService - No ApiClient available for 'dmphub'!" unless api_client . present? return plan unless plan . present? && doi . present? && callback_path . present? && api_client . present? Subscription . where ( plan : plan , subscriber : api_client ) . update ( last_notified : Time . now ) end
Bump the last_notified timestamp on the subscription
Bump the last_notified timestamp on the subscription
plan
doi