Skip to content

Commit f63d368

Browse files
committed
updated hash based lookup module in commit log search API to check with orderly character match
1 parent 5b3db22 commit f63d368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API/commitLogSearchApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function gitCommitLogDbSerchApi(repoId, searchCategory, searchKey) {
1010

1111
switch (searchCategory) {
1212
case "hash":
13-
searchQuery = `SELECT * FROM commitLog_${repoId} WHERE hash LIKE "%${searchKey}%" LIMIT 10`;
13+
searchQuery = `SELECT * FROM commitLog_${repoId} WHERE hash LIKE "${searchKey}%" LIMIT 10`;
1414
break;
1515
case "message":
1616
searchQuery = `SELECT * FROM commitLog_${repoId} WHERE commit_message LIKE "%${searchKey}%" LIMIT 10`;

0 commit comments

Comments
 (0)