Skip to content

Commit

Permalink
chore: switch to google drive v3 service
Browse files Browse the repository at this point in the history
  • Loading branch information
ahochsteger committed Dec 26, 2024
1 parent c15a47b commit b4715ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/gas/examples/appsscript.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"enabledAdvancedServices": [
{
"userSymbol": "Drive",
"version": "v2",
"serviceId": "drive"
},
{
"userSymbol": "DriveAPIv3",
"version": "v3",
"serviceId": "drive"
}
Expand Down
2 changes: 1 addition & 1 deletion src/gas/lib/appsscript.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"enabledAdvancedServices": [
{
"userSymbol": "Drive",
"version": "v2",
"version": "v3",
"serviceId": "drive"
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/adapter/GDriveAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class GDriveAdapter extends BaseAdapter {
: attachment.getName().replace(/\.pdf$/, "")
const createResource = {
name: docsFileLocation, // TODO: Location contains path but this is not allowed here!
mimeType: attachment.getContentType(), // TODO: Allow overriding content type
mimeType: "application/vnd.google-apps.document", // Using MimeType.GOOGLE_DOCS
} as GoogleAppsScript.Drive_v3.Drive.V3.Schema.File
const createOptionalArgs = {
ocr: true,
Expand Down

0 comments on commit b4715ff

Please sign in to comment.