This commit is contained in:
syuilo
2018-06-18 14:28:43 +09:00
parent 80e5645a84
commit e66d7babc5
56 changed files with 115 additions and 112 deletions

View File

@ -1,7 +1,8 @@
import config from '../../../config';
import { IDriveFile } from '../../../models/drive-file';
export default ({ _id, contentType }) => ({
export default (file: IDriveFile) => ({
type: 'Document',
mediaType: contentType,
url: `${config.drive_url}/${_id}`
mediaType: file.contentType,
url: `${config.drive_url}/${file._id}`
});