Sfoglia il codice sorgente

fix conditional branching

zahmis 5 anni fa
parent
commit
5ba637bf36
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,