Skip to content

Commit

Permalink
Update service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Apr 15, 2024
1 parent 66b6f3f commit e61fe20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/data/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ export class DataService {
if (!c.columns?.length) {
continue
}
const query = `SELECT * FROM ${this.getFromQueryString(c.filename)} WHERE "${c.id}" = '${id}'`
console.log(query)
const query = `SELECT * FROM ${this.getFromQueryString(c.filename)} WHERE "${c.id}" LIKE '${id}%'`
const result = await this.runQuery(query, true)
data.push(JSON.parse(JSON.stringify(result)))
}
Expand Down

0 comments on commit e61fe20

Please sign in to comment.