Sha256: 181c58dfc1bf63a4031433f66d6cd51c7a47fd832d313d52e063371c3889fc6c
Contents?: true
Size: 530 Bytes
Versions: 10
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true 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
10 entries across 10 versions & 1 rubygems