This commit is contained in:
syuilo 2017-12-08 19:38:49 +09:00
parent d2e7546de7
commit 53db52bb40

View File

@ -56,19 +56,21 @@ export default (
_target.url = `${config.drive_url}/${_target.id}/${encodeURIComponent(_target.name)}`;
if (opts.detail && _target.folder_id) {
if (opts.detail) {
if (_target.folder_id) {
// Populate folder
_target.folder = await serializeDriveFolder(_target.folder_id, {
detail: true
});
}
if (opts.detail && _target.tags) {
if (_target.tags) {
// Populate tags
_target.tags = await _target.tags.map(async (tag: any) =>
await serializeDriveTag(tag)
);
}
}
resolve(_target);
});