Skip to content

Commit 0891371

Browse files
committed
fix: update to support new query system
1 parent fb26268 commit 0891371

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ async function fetchScriptFromDatabaseAndSave(name, moduleConfig) {
207207
host: moduleConfig.object.hostname,
208208
array: moduleConfig.array,
209209
$filter: {
210-
query: [
211-
{ key: "host", value: [moduleConfig.object.hostname, '*'], operator: "$in" },
212-
{ key: "pathname", value: moduleConfig.object.pathname, operator: "$eq" }
213-
],
210+
query: {
211+
host: { $in: [moduleConfig.object.hostname, '*'] },
212+
pathname: moduleConfig.object.pathname
213+
},
214214
limit: 1
215215
},
216216
organization_id

0 commit comments

Comments
 (0)