Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Feb 19, 2024
1 parent f2704a9 commit 338bbec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions cli/src/commands/upload.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ export class UploadCommand extends BaseCommand {

const assetsToCheck = files.map((path) => new Asset(path));

const { newAssets, duplicateAssets } = await this.checkAssets(
assetsToCheck,
options.concurrency ?? 4,
);
const { newAssets, duplicateAssets } = await this.checkAssets(assetsToCheck, options.concurrency ?? 4);

const totalSizeUploaded = await this.upload(newAssets, options);
const messageStart = options.dryRun ? 'Would have' : 'Successfully';
Expand Down
4 changes: 2 additions & 2 deletions cli/test/e2e/upload.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ describe(`upload (e2e)`, () => {
});

it('should delete local files if specified', async () => {
await mkdir(`/tmp/albums/nature`, { recursive: true })
await mkdir(`/tmp/albums/nature`, { recursive: true });
const filesToLink = await readdir(`${IMMICH_TEST_ASSET_PATH}/albums/nature`);
for (const file of filesToLink) {
await symlink(`${IMMICH_TEST_ASSET_PATH}/albums/nature/${file}`, `/tmp/albums/nature/${file}`);
}

await new UploadCommand(CLI_BASE_OPTIONS).run(['/tmp/albums/nature'], { delete: true });

const files = await readdir(`/tmp/albums/nature`);
Expand Down

0 comments on commit 338bbec

Please sign in to comment.