Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#45772] fixed eslint and failing spec

Eric Schubert5a16ede71279
diff --git a/frontend/src/app/core/file-upload/op-file-upload.service.ts b/frontend/src/app/core/file-upload/op-file-upload.service.ts
index 02085687af1..c8a82614ece 100644
--- a/frontend/src/app/core/file-upload/op-file-upload.service.ts
+++ b/frontend/src/app/core/file-upload/op-file-upload.service.ts
@@ -82,7 +82,7 @@ export class OpenProjectFileUploadService {
const mapped = finished
.then((result:HalResource[]) => result.map((el:HalResource) => ({
response: el,
- uploadUrl: el.staticDownloadLocation.href,
+ uploadUrl: (el.staticDownloadLocation as unknown&{ href:string }).href,
}))) as Promise<{ response:HalResource, uploadUrl:string }[]>;
return { uploads, finished: mapped } as MappedUploadResult;
diff --git a/modules/storages/spec/requests/api/v3/storages/storage_files_spec.rb b/modules/storages/spec/requests/api/v3/storages/storage_files_spec.rb
index 2bd672de401..6b5a9f7b26d 100644
--- a/modules/storages/spec/requests/api/v3/storages/storage_files_spec.rb
+++ b/modules/storages/spec/requests/api/v3/storages/storage_files_spec.rb
@@ -207,7 +207,7 @@ describe 'API v3 storage files', content_type: :json, webmock: true do
end
it { is_expected.to be_json_eql(upload_link.destination.to_json).at_path('_links/destination/href') }
- it { is_expected.to be_json_eql("put".to_json).at_path('_links/destination/method') }
+ it { is_expected.to be_json_eql("post".to_json).at_path('_links/destination/method') }
it { is_expected.to be_json_eql("Upload File".to_json).at_path('_links/destination/title') }
end