From 9e227abb54dda108aff6bd4a65aabd2f3f8a5fd1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 26 Jul 2018 03:46:18 +0900 Subject: [PATCH] :v: --- cli/migration/5.0.0.js | 3 +-- src/models/drive-file.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/migration/5.0.0.js b/cli/migration/5.0.0.js index 8c6f49ed8..bef103fe4 100644 --- a/cli/migration/5.0.0.js +++ b/cli/migration/5.0.0.js @@ -2,8 +2,7 @@ const { default: DriveFile } = require('../../built/models/drive-file'); DriveFile.update({}, { $rename: { - 'metadata.url': 'metadata.src', - 'metadata.isMetaOnly': 'metadata.withoutChunks', + 'metadata.isMetaOnly': 'metadata.withoutChunks' } }, { multi: true diff --git a/src/models/drive-file.ts b/src/models/drive-file.ts index 416e49696..33c045190 100644 --- a/src/models/drive-file.ts +++ b/src/models/drive-file.ts @@ -164,7 +164,6 @@ export const pack = ( _target = Object.assign(_target, _file.metadata); _target.url = _file.metadata.url ? _file.metadata.url : `${config.drive_url}/${_target.id}/${encodeURIComponent(_target.name)}`; - _target.src = _file.metadata.url; _target.isRemote = _file.metadata.isRemote; if (_target.properties == null) _target.properties = {};