Explorar el Código

fix conditional branching

zahmis hace 5 años
padre
commit
5ba637bf36
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/service/bolt.js

+ 1 - 1
src/server/service/bolt.js

@@ -249,7 +249,7 @@ class BoltService {
     const keywordsAndDesc = `keyword(s) : "${keywords}" \n ${searchResultsDesc}.`;
 
     try {
-      if (searchResultsNum < PAGINGLIMIT || resultsTotal === PAGINGLIMIT) {
+      if (resultsTotal <= offset + PAGINGLIMIT) {
         return await this.client.chat.postEphemeral({
           channel: command.channel_id,
           user: command.user_id,