From 78747911b706fd5bf63b9eb81a7a63f89f0e8d35 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 4 Jan 2024 10:40:28 +0100 Subject: [PATCH] Fix conflicts in asset sync caused by preview generation [SCI-9935] --- app/models/asset_sync_token.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/asset_sync_token.rb b/app/models/asset_sync_token.rb index 0729fb7c9..5b80255aa 100644 --- a/app/models/asset_sync_token.rb +++ b/app/models/asset_sync_token.rb @@ -10,7 +10,7 @@ class AssetSyncToken < ApplicationRecord validates :token, uniqueness: true, presence: true def version_token - asset.updated_at.to_i.to_s + asset.file.checksum end def token_valid?