mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 08:34:49 +08:00
Merge branch 'release/1.28.0' into develop
This commit is contained in:
commit
d71061a75d
2 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,7 @@ module Api
|
|||
end
|
||||
|
||||
asset.save!(context: :on_api_upload)
|
||||
asset.post_process_file
|
||||
asset.post_process_file(@team)
|
||||
|
||||
render jsonapi: asset,
|
||||
serializer: AssetSerializer,
|
||||
|
|
|
@ -113,6 +113,7 @@ module Api
|
|||
blob = create_blob_from_params
|
||||
asset = Asset.create!(file: blob, team: @team)
|
||||
end
|
||||
asset.post_process_file(@team)
|
||||
ResultAsset.create!(asset: asset, result: @result)
|
||||
end
|
||||
end
|
||||
|
@ -128,6 +129,7 @@ module Api
|
|||
blob = create_blob_from_params
|
||||
asset.update!(file: blob)
|
||||
end
|
||||
asset.post_process_file(@team)
|
||||
new_checksum = asset.file.blob.checksum
|
||||
end
|
||||
@asset_result_updated = old_checksum != new_checksum
|
||||
|
|
Loading…
Add table
Reference in a new issue