mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
✌️
This commit is contained in:
parent
f74a34bc2b
commit
9e227abb54
2 changed files with 1 additions and 3 deletions
|
@ -2,8 +2,7 @@ const { default: DriveFile } = require('../../built/models/drive-file');
|
||||||
|
|
||||||
DriveFile.update({}, {
|
DriveFile.update({}, {
|
||||||
$rename: {
|
$rename: {
|
||||||
'metadata.url': 'metadata.src',
|
'metadata.isMetaOnly': 'metadata.withoutChunks'
|
||||||
'metadata.isMetaOnly': 'metadata.withoutChunks',
|
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
multi: true
|
multi: true
|
||||||
|
|
|
@ -164,7 +164,6 @@ export const pack = (
|
||||||
_target = Object.assign(_target, _file.metadata);
|
_target = Object.assign(_target, _file.metadata);
|
||||||
|
|
||||||
_target.url = _file.metadata.url ? _file.metadata.url : `${config.drive_url}/${_target.id}/${encodeURIComponent(_target.name)}`;
|
_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;
|
_target.isRemote = _file.metadata.isRemote;
|
||||||
|
|
||||||
if (_target.properties == null) _target.properties = {};
|
if (_target.properties == null) _target.properties = {};
|
||||||
|
|
Loading…
Reference in a new issue