Browse Source

lint

master
Mel O'Hagan 4 years ago
parent
commit
f7c816bce9
  1. 6
      packages/server/src/integrations/mongodb.ts

6
packages/server/src/integrations/mongodb.ts

@ -126,14 +126,14 @@ module MongoDBModule {
if (c === '"') {
inQuotes = !inQuotes
}
if (c === '{' && !inQuotes) {
if (c === "{" && !inQuotes) {
openCount++
if (openCount === 1) {
startIndex = i
}
} else if (c === '}' && !inQuotes) {
} else if (c === "}" && !inQuotes) {
if (openCount === 1) {
queryParams.push(JSON.parse(params.substring(startIndex, i+1)))
queryParams.push(JSON.parse(params.substring(startIndex, i + 1)))
}
openCount--
}

Loading…
Cancel
Save