Skip to content

Commit

Permalink
Merge pull request #1 from lonelyicer/main
Browse files Browse the repository at this point in the history
fix: `package.json` has wrong url
  • Loading branch information
TheresaQWQ authored Sep 4, 2024
2 parents bae214b + 478a861 commit bb83410
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions VPMReposSynchronizer.Entry/Controllers/VpmRepoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.OutputCaching;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Extensions.Options;
using Semver;
using VPMReposSynchronizer.Core.Models.Entity;
Expand Down Expand Up @@ -134,8 +135,8 @@ private VpmPackage GetPackageWithUrl(VpmPackageEntity package)
var vpmPackage = mapper.Map<VpmPackage>(package);

var fileDownloadEndpoint = new Uri(fileHostOptions.Value.BaseUrl,
$"files/{package.FileId}/download/{package.PackageId}.zip").ToString();
vpmPackage.Url = fileDownloadEndpoint;
$"files/download/{package.PackageId}.zip").ToString();
vpmPackage.Url = QueryHelpers.AddQueryString(fileDownloadEndpoint, "fileId", package.FileId);

return vpmPackage;
}
Expand Down

0 comments on commit bb83410

Please sign in to comment.