banidb-api icon indicating copy to clipboard operation
banidb-api copied to clipboard

Seralize the input to IN in mysql query in search-results endpoint

Open Gauravjeetsingh opened this issue 1 year ago • 0 comments

const q = `SELECT ${allColumns} ${allFrom} WHERE v.ID IN (${VerseID})`;

Instead of directly writing VerseID, need to seralize this input and send as query parameter

Originally posted by @Gauravjeetsingh in https://github.com/KhalisFoundation/banidb-api/pull/268#discussion_r1236746953

Gauravjeetsingh avatar Jun 22 '23 01:06 Gauravjeetsingh