canvas_sync 0.17.42 → 0.17.43

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6637b97dd9b51f6d3babe9b022904d9e77b1c886e62707fb857db5caba909fc3
4
- data.tar.gz: 1bfa80e171b9b92b12ebad2fdc732b558e59fe9271175ce7d1dd2680a81e2b0c
3
+ metadata.gz: 7d7516d1ed3059c0c62d1f1ac058841dd289aca1ff8007576be2b0d823def9b7
4
+ data.tar.gz: 39fc2b3ade4599edaec6282b1db7b45f8cb81817573d7f35e7de1377624b1474
5
5
  SHA512:
6
- metadata.gz: 0af624f526294b480e6b24814ab9156f3970056160eb59e0aafdd9af2849984ef34668099cce16f978257b6311c5fbfe69e2fe9e0bfd52224034c7e8018afbfc
7
- data.tar.gz: 2d2d89dc832f3cb4d901641f00c930f929ca410f86b2890689909f43fea3fb29d56584fa72c5871382101d946ff7d50fde3d044375ae03d1b8de230bba13788b
6
+ metadata.gz: '0978316cfc1c66f2411d1fe00b3c9375a4032b8b6be49d63807fb596bc07f25367fe013e3e5bbba32085e0ebf9a4bfcd977c19c5e20a11c41bf02de0da40bd2a'
7
+ data.tar.gz: 7496829655356548947c2782a024c76370f9d1f74ac6b96b17d2df2c4afd177f5e43be6d0b60b1cee79955e15ba5a387e002c784bcc0dde2ee48b3bae7f61783
@@ -15,7 +15,7 @@ module CanvasSync
15
15
  elsif !globals[:updated_after].present? || globals[:updated_after] == true
16
16
  last_batch = SyncBatch.where(status: 'completed', batch_genre: genre).last
17
17
  globals[:full_sync_every] ||= "sunday/2"
18
- globals[:updated_after] = last_batch&.started_at&.iso8601
18
+ globals[:updated_after] = ((last_batch.started_at - 1.day).iso8601 rescue nil)
19
19
  end
20
20
 
21
21
  # Refuse to run syncs of the same genre if there is a running full sync
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.17.42".freeze
2
+ VERSION = "0.17.43".freeze
3
3
  end