Skip to content

Commit 199f655

Browse files
committed
[FIX] Fireflies issue with New Meeting Created source
1 parent c076545 commit 199f655

File tree

7 files changed

+27
-28
lines changed

7 files changed

+27
-28
lines changed

components/fireflies/actions/find-meeting-by-id/find-meeting-by-id.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "fireflies-find-meeting-by-id",
77
name: "Find Meeting by ID",
88
description: "Locates a specific user meeting by its unique ID. [See the documentation](https://docs.fireflies.ai/graphql-api/query/transcript)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
annotations: {
1111
destructiveHint: false,
1212
openWorldHint: true,

components/fireflies/actions/find-recent-meeting/find-recent-meeting.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "fireflies-find-recent-meeting",
77
name: "Find Recent Meeting",
88
description: "Retrieves the most recent meeting for a user. [See the documentation](https://docs.fireflies.ai/graphql-api/query/user)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
annotations: {
1111
destructiveHint: false,
1212
openWorldHint: true,

components/fireflies/actions/upload-audio/upload-audio.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "fireflies-upload-audio",
66
name: "Upload Audio",
77
description: "Creates and stores a new meeting in Fireflies, allowing it to be transcribed and shared. [See the documentation](https://docs.fireflies.ai/graphql-api/mutation/upload-audio)",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
annotations: {
1010
destructiveHint: false,
1111
openWorldHint: true,

components/fireflies/common/queries.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export default {
88
}
99
`,
1010
listTranscriptsByDate: `
11-
query Transcripts($date: Float) {
12-
transcripts(date: $date) {
13-
id
11+
query Transcripts($fromDate: DateTime, $limit: Int, $skip: Int) {
12+
transcripts(fromDate: $fromDate, limit: $limit, skip: $skip) {
13+
id
1414
title
1515
transcript_url
1616
duration
@@ -32,7 +32,7 @@ export default {
3232
user_id
3333
name
3434
}
35-
}
35+
}
3636
}
3737
`,
3838
getTranscript: `

components/fireflies/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/fireflies",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Pipedream Fireflies Components",
55
"main": "fireflies.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^3.0.3"
16+
"@pipedream/platform": "^3.1.0"
1717
}
1818
}

components/fireflies/sources/new-meeting-created/new-meeting-created.mjs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "fireflies-new-meeting-created",
99
name: "New Meeting Created",
1010
description: "Emit new event when a meeting with transcripts is created",
11-
version: "0.0.3",
11+
version: "0.0.4",
1212
type: "source",
1313
dedupe: "unique",
1414
props: {
@@ -39,15 +39,21 @@ export default {
3939
return {
4040
id: result.id,
4141
summary: `New Meeting: ${result.title}`,
42-
ts: Date.parse(result.date),
42+
ts: result.date,
4343
};
4444
},
4545
},
46+
hooks: {
47+
async deploy() {
48+
const lastDate = this.oneDayAgo();
49+
this._setLastDate(lastDate);
50+
},
51+
},
4652
async run() {
4753
const lastDate = this._getLastDate();
4854
const limit = constants.DEFAULT_LIMIT;
4955
const variables = {
50-
date: lastDate,
56+
fromDate: new Date(lastDate).toISOString(),
5157
limit,
5258
skip: 0,
5359
};

pnpm-lock.yaml

Lines changed: 9 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)