Skip to content

Commit

Permalink
fix: update to support new query system
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 13, 2024
1 parent fb26268 commit 0891371
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ async function fetchScriptFromDatabaseAndSave(name, moduleConfig) {
host: moduleConfig.object.hostname,
array: moduleConfig.array,
$filter: {
query: [
{ key: "host", value: [moduleConfig.object.hostname, '*'], operator: "$in" },
{ key: "pathname", value: moduleConfig.object.pathname, operator: "$eq" }
],
query: {
host: { $in: [moduleConfig.object.hostname, '*'] },
pathname: moduleConfig.object.pathname
},
limit: 1
},
organization_id
Expand Down

0 comments on commit 0891371

Please sign in to comment.