diff --git a/backend/movieapp-config.ini b/backend/movieapp-config.ini index 4ed9a8d..e69de29 100644 --- a/backend/movieapp-config.ini +++ b/backend/movieapp-config.ini @@ -1,20 +0,0 @@ -[s3] -bucket_name = movieapp-nu-cs310 - -[rds] -endpoint = mysql-movieapp-nu-cs310.cmer9gqilfw8.us-east-2.rds.amazonaws.com -port_number = 3306 -region_name = us-east-2 -user_name = admin -user_pwd = mysql-movieapp-nu-cs310 -db_name = movieReviewApp - -[s3readonly] -region_name = us-east-2 -aws_access_key_id = AKIAZTAVSYSDHFGCYZAB -aws_secret_access_key = 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 - -[s3readwrite] -region_name = us-east-2 -aws_access_key_id = AKIAZTAVSYSDKL345E6C -aws_secret_access_key = 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 diff --git a/backend/search_film.js b/backend/search_film.js index 2d1eca9..ea56e69 100644 --- a/backend/search_film.js +++ b/backend/search_film.js @@ -11,7 +11,7 @@ exports.search_film = async (req, res) => { const params = []; if (name) { - conditions.push("Title LIKE ?"); + conditions.push("Title LIKE '%?%' "); params.push(`%${name}%`); }