Skip to content

Commit

Permalink
fix(core.gbapp): Fixed no publish of artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 29, 2021
1 parent 4452a31 commit c12a7d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core.gbapp/services/GBDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,12 @@ export class GBDeployer implements IGBDeployer {
const nextFolder = urlJoin(remotePath, item.name);
await this.downloadFolder(min, localPath, nextFolder);
} else {
let download = false;
let download = true;

if (Fs.existsSync(itemPath)) {
const dt = Fs.statSync(itemPath);
if (new Date(dt.mtime) < new Date(item.lastModifiedDateTime)) {
download = true;
if (new Date(dt.mtime) > new Date(item.lastModifiedDateTime)) {
download = false;
}
}

Expand Down

0 comments on commit c12a7d7

Please sign in to comment.