Skip to content

Commit 95ea893

Browse files
committed
Remove debug logging
1 parent 7480353 commit 95ea893

File tree

3 files changed

+1235
-2876
lines changed

3 files changed

+1235
-2876
lines changed

packages/db/src/collection/subscription.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { ensureIndexForExpression } from "../indexes/auto-index.js"
22
import { and, gt, lt } from "../query/index.js"
3+
import { Value } from "../query/ir.js"
34
import {
45
createFilterFunctionFromExpression,
56
createFilteredCallback,
67
} from "./change-events.js"
7-
import { Value, type BasicExpression, type OrderBy } from "../query/ir.js"
8+
import type { BasicExpression, OrderBy } from "../query/ir.js"
89
import type { BaseIndex } from "../indexes/base-index.js"
910
import type { ChangeMessage } from "../types.js"
1011
import type { CollectionImpl } from "./index.js"
@@ -153,7 +154,6 @@ export class CollectionSubscription {
153154
limit,
154155
minValue,
155156
}: RequestLimitedSnapshotOptions) {
156-
console.log("in requestLimitedSnapshot")
157157
if (!limit) throw new Error(`limit is required`)
158158

159159
if (!this.orderByIndex) {

packages/electric-db-collection/src/sql-compiler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export function compileSQL<T>(
3030

3131
// Serialize the values in the params array into PG formatted strings
3232
// and transform the array into a Record<string, string>
33-
console.log("params", params)
3433
const paramsRecord = params.reduce(
3534
(acc, param, index) => {
3635
acc[`${index + 1}`] = serialize(param)
@@ -59,7 +58,7 @@ function compileBasicExpression(
5958
case `val`:
6059
params.push(exp.value)
6160
return `$${params.length}`
62-
case `ref`:
61+
case `ref`:
6362
// TODO: doesn't yet support JSON(B) values which could be accessed with nested props
6463
if (exp.path.length !== 1) {
6564
throw new Error(

0 commit comments

Comments
 (0)