mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(cli): read-only and sidecar support for import (#3372)
* added flag to support toggling read-only mode (read-only true by default), added sidecarPath to import request payload * removed default on --no-read-only to prevent confusion since true is the default
This commit is contained in:
parent
8f08100a30
commit
c40aa4399b
3 changed files with 5 additions and 0 deletions
|
|
@ -70,11 +70,13 @@ export default class Upload extends BaseCommand {
|
|||
if (options.import) {
|
||||
const importData = {
|
||||
assetPath: asset.path,
|
||||
sidecarPath: asset.sidecarPath,
|
||||
deviceAssetId: asset.deviceAssetId,
|
||||
deviceId: this.deviceId,
|
||||
fileCreatedAt: asset.fileCreatedAt,
|
||||
fileModifiedAt: asset.fileModifiedAt,
|
||||
isFavorite: false,
|
||||
isReadOnly: options.readOnly,
|
||||
};
|
||||
|
||||
if (!this.dryRun) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue