We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8efc7 commit ea0ddf2Copy full SHA for ea0ddf2
components/fireflies/actions/find-recent-meeting/find-recent-meeting.mjs
@@ -22,7 +22,7 @@ export default {
22
throw new ConfigurationError("User ID is required");
23
}
24
25
- const { data: { user: { recent_meeting: meetingId } } } = await this.fireflies.query({
+ const user = await this.fireflies.query({
26
$,
27
data: {
28
query: queries.getUser,
@@ -31,6 +31,12 @@ export default {
31
},
32
33
});
34
+
35
+ if (user.errors?.length) {
36
+ throw new ConfigurationError(`Error: ${user.errors[0].message}`);
37
+ }
38
39
+ const meetingId = user?.data?.user?.recent_meeting;
40
if (!meetingId) {
41
$.export("$summary", `No meeting found for user with ID ${this.userId}`);
42
return;
0 commit comments