Skip to content

Commit

Permalink
refactor: adjust 'getProject' to new input data
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Nov 9, 2023
1 parent 6812547 commit 3c3f400
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/synchronizer/src/utils/synchronizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ export class Synchronizer extends EventEmitter {
};
}

const freshProjectInfo = this.isProjectData(inputData)
? await this.getProject(inputData as ProjectInputData, tokenInfo)
const projectSlugFromInput = this.getProjectSlug(rootPathOrRepoDataOrProjectData);
const freshProjectInfo = projectSlugFromInput
? await this.getProject({ slug: projectSlugFromInput }, tokenInfo)
: await this.getMatchingProject(inputData as RepoRemoteInputData, tokenInfo);

return !freshProjectInfo
Expand Down

0 comments on commit 3c3f400

Please sign in to comment.