Skip to content

Commit

Permalink
Use direct search withiut like operator for recordings uri search
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhina-e committed Jul 25, 2022
1 parent 3f962dc commit 4bae96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/model/recordings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1018,9 +1018,9 @@ var Recordings = {
var q = "SELECT count(recording_id) as count \n"+
"FROM recordings \n"+
"WHERE site_id = %s \n"+
"AND uri LIKE %s";
"AND uri = %s";

var uri = dbpool.escape('%' + recording.filename + '%');
var uri = dbpool.escape(recording.filename);
var site_id = dbpool.escape(Number(recording.site_id));
q = util.format(q, site_id, uri);

Expand Down

0 comments on commit 4bae96a

Please sign in to comment.