Sha256: f4c742b00d91cd1ce7f1a4771aa5d28a9cbf06be686c6bfe418b6121f1cb0998
Contents?: true
Size: 553 Bytes
Versions: 76
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true require "attr_extras" module Renalware module Patients class LastSuccessfulPracticeSyncDateQuery pattr_initialize :identifier def call max_created_at&.to_date&.to_s end private def max_created_at System::APILog .where( identifier: identifier, dry_run: false, status: Renalware::System::APILog::STATUS_DONE ) .group(:identifier) .maximum(:created_at)[identifier] end end end end
Version data entries
76 entries across 76 versions & 1 rubygems