diff --git a/app/models/asset_sync_token.rb b/app/models/asset_sync_token.rb index 5b80255aa..2e9951d07 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.file.checksum + OpenSSL::Digest::SHA256.base64digest(asset.file.checksum + asset.file_name) end def token_valid?