Skip to content

Commit

Permalink
companion: allow all fields for GDrive's "/drives" endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ifedapoolarewaju committed Sep 25, 2019
1 parent 5dd4aaf commit f366f4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@uppy/companion/src/server/provider/drive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const adapter = require('./adapter')
const AuthError = require('../error')
const DRIVE_FILE_FIELDS = 'kind,id,name,mimeType,ownedByMe,permissions(role,emailAddress),size,modifiedTime,iconLink,thumbnailLink,teamDriveId'
const DRIVE_FILES_FIELDS = `kind,nextPageToken,incompleteSearch,files(${DRIVE_FILE_FIELDS})`
const SHARED_DRIVE_FIELDS = 'drives(kind,id,name,backgroundImageLink,hidden)'
// using wildcard to get all 'drive' fields because specifying fields seems no to work for the /drives endpoint
const SHARED_DRIVE_FIELDS = '*'

class Drive {
constructor (options) {
Expand Down

0 comments on commit f366f4f

Please sign in to comment.