mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 05:26:43 -06:00
10 lines
219 B
JavaScript
10 lines
219 B
JavaScript
const { default: DriveFile } = require('../../built/models/drive-file');
|
|
|
|
DriveFile.update({}, {
|
|
$rename: {
|
|
'metadata.url': 'metadata.src',
|
|
'metadata.isMetaOnly': 'metadata.withoutChunks',
|
|
}
|
|
}, {
|
|
multi: true
|
|
});
|