Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
PYudakov committed Jan 23, 2025
1 parent bed0148 commit af02950
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export default class PublisherERS extends PublisherBase<PublisherERSConfig> {
const artifacts = makeResult.artifacts.filter((artifactPath) => path.basename(artifactPath).toLowerCase() !== 'releases');

// Find the version with the same name and flavor
const existingVersion = await authFetch(`api/version?name=${packageJSON.version}&flavor=${flavor}`)
const existingVersion: ERSVersion = await authFetch(`api/version?name=${packageJSON.version}&flavor=${flavor}`)
.then(res => res.json())
.then(versions => versions.find((version) => {
.then(versions => versions.find((version: ERSVersion) => {
return version.name === packageJSON.version && version.flavor.name === flavor
}))
.catch(() => undefined)
Expand Down

0 comments on commit af02950

Please sign in to comment.