Skip to content

Commit

Permalink
FIX: Blank User ID not being parsed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Strachan committed Feb 17, 2023
1 parent 3772603 commit f62501e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class CustomIntegration implements IntegrationBase {
let queries: string = "";
let hasFields: boolean = false;

if (query.fields === "" || query.fields === "0" || typeof query.id === 'undefined') {
if (query.id === "" || query.id === "0" || typeof query.id === 'undefined') {
path = "/api/2/users";
} else {
const userID: number = +query.id;
Expand Down

0 comments on commit f62501e

Please sign in to comment.