this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix passing array into SQLite statement

futur 5648a6d1 926394d9

+2 -2
+2 -2
src/LabelerServer.ts
··· 290 290 SELECT * FROM labels 291 291 WHERE 1 = 1 292 292 ${patterns.length ? "AND " + patterns.map(() => "uri LIKE ?").join(" OR ") : ""} 293 - ${sources.length ? "AND src IN (?)" : ""} 293 + ${sources.length ? `AND src IN (${sources.map(() => "?").join(", ")})` : ""} 294 294 ${cursor ? "AND id > ?" : ""} 295 295 ORDER BY id ASC 296 296 LIMIT ? ··· 298 298 299 299 const params = []; 300 300 if (patterns.length) params.push(...patterns); 301 - if (sources.length) params.push(sources); 301 + if (sources.length) params.push(...sources); 302 302 if (cursor) params.push(cursor); 303 303 params.push(limit); 304 304