Skip to content

Commit 1bab79f

Browse files
authored
Merge pull request #69 from ryan-hanchett/fix/wrap-event-type
fix: wrap event type in backticks to avoid invalid input errors
2 parents 879c914 + ef80246 commit 1bab79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nerdlets/util/graphqlbuilders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function buildAttributeQueries(selectedAccountID, eventType) {
1717
const query = `{
1818
actor {
1919
query${selectedAccountID}: account(id: ${selectedAccountID}) {
20-
nrql(query: "SELECT keyset() FROM ${eventType} since 1 week ago", timeout: 200) {
20+
nrql(query: "SELECT keyset() FROM \`${eventType}\` since 1 week ago", timeout: 200) {
2121
results
2222
}
2323
}

0 commit comments

Comments
 (0)