Skip to content

Commit 2c59910

Browse files
committed
watch drive instead of file
1 parent f6ef061 commit 2c59910

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

components/google_sheets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"dependencies": {
1313
"@googleapis/sheets": "^0.3.0",
14-
"@pipedream/google_drive": "^1.1.0",
14+
"@pipedream/google_drive": "^1.1.1",
1515
"@pipedream/platform": "^3.1.0",
1616
"lodash": "^4.17.21",
1717
"uuidv4": "^6.2.6",

components/google_sheets/sources/common/http-based/sheet.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@
55
import { v4 as uuid } from "uuid";
66

77
import base from "./base.mjs";
8+
import drive from "./drive.mjs";
89

910
/**
1011
* This source watches for changes to a specific spreadsheet in the user's Google Drive.
1112
*/
1213
export default {
1314
...base,
1415
methods: {
16+
...drive.methods,
1517
...base.methods,
1618
async activateHook(channelID) {
17-
return this.googleSheets.activateFileHook(
19+
return this.googleSheets.activateHook(
1820
channelID,
1921
this.http.endpoint,
20-
this.getSheetId(),
22+
this.googleSheets.getDriveId(this.watchedDrive),
2123
);
2224
},
2325
async getAllWorksheetIds(sheetID) {

components/google_sheets/sources/new-comment/new-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "google_sheets-new-comment",
77
name: "New Comment (Instant)",
88
description: "Emit new event each time a comment is added to a spreadsheet.",
9-
version: "0.1.1",
9+
version: "0.1.2",
1010
dedupe: "unique",
1111
type: "source",
1212
methods: {

components/google_sheets/sources/new-row-added/new-row-added.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "google_sheets-new-row-added",
99
name: "New Row Added (Instant)",
1010
description: "Emit new event each time a row or rows are added to the bottom of a spreadsheet.",
11-
version: "0.2.1",
11+
version: "0.2.2",
1212
dedupe: "unique",
1313
type: "source",
1414
props: {

components/google_sheets/sources/new-updates/new-updates.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
type: "source",
1010
name: "New Updates (Instant)",
1111
description: "Emit new event each time a row or cell is updated in a spreadsheet.",
12-
version: "0.3.1",
12+
version: "0.3.2",
1313
dedupe: "unique",
1414
props: {
1515
...httpBase.props,

components/google_sheets/sources/new-worksheet/new-worksheet.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
type: "source",
1010
name: "New Worksheet (Instant)",
1111
description: "Emit new event each time a new worksheet is created in a spreadsheet.",
12-
version: "0.2.1",
12+
version: "0.2.2",
1313
dedupe: "unique",
1414
hooks: {
1515
...httpBase.hooks,

0 commit comments

Comments
 (0)