diff --git a/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts b/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts index a2b5b8d719..f1dac0c6e6 100644 --- a/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts +++ b/packages/techdocs-common/src/stages/publish/migrations/GoogleMigration.ts @@ -54,9 +54,8 @@ export class MigrateWriteStream extends Writable { } // Otherwise, copy or move the file. - // todo: Use file.move instead of file.copy when removeOriginal is true. const migrate = this.removeOriginal - ? file.copy.bind(file) + ? file.move.bind(file) : file.copy.bind(file); this.logger.debug(`Migrating ${file.name}`); migrate(newFile)