Skip to content

Commit

Permalink
chore: Fix project upload link (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers authored Dec 18, 2024
1 parent b20ec8b commit 26783ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/projects/buildAndDeploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type PollTaskStatusFunctionConfig<T extends ProjectTask> = {
accountId: number,
taskName: string,
taskId: number,
deployedBuildId: number
deployedBuildId: number | null
) => void;
};

Expand Down Expand Up @@ -118,7 +118,7 @@ function makePollTaskStatusFunc<T extends ProjectTask>({
) {
const displayId = deployedBuildId || taskId;

if (linkToHubSpot && !silenceLogs && deployedBuildId) {
if (linkToHubSpot && !silenceLogs) {
logger.log(
`\n${linkToHubSpot(accountId, taskName, taskId, deployedBuildId)}\n`
);
Expand Down
14 changes: 8 additions & 6 deletions lib/projects/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ async function uploadProjectFiles(
}),
});

logger.debug(
i18n(`${i18nKey}.uploadProjectFiles.buildCreated`, {
buildId,
projectName,
})
);
if (buildId) {
logger.debug(
i18n(`${i18nKey}.uploadProjectFiles.buildCreated`, {
buildId,
projectName,
})
);
}
} catch (err) {
SpinniesManager.fail('upload', {
text: i18n(`${i18nKey}.uploadProjectFiles.fail`, {
Expand Down

0 comments on commit 26783ae

Please sign in to comment.