Parcourir la source

78577 add await to catch exception

SULLEY\ryo-h il y a 4 ans
Parent
commit
565732b8fc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/app/src/server/service/search.js

+ 1 - 1
packages/app/src/server/service/search.js

@@ -148,7 +148,7 @@ class SearchService {
 
   async searchKeyword(keyword, user, userGroups, searchOpts) {
     try {
-      return this.delegator.searchKeyword(keyword, user, userGroups, searchOpts);
+      return await this.delegator.searchKeyword(keyword, user, userGroups, searchOpts);
     }
     catch (err) {
       logger.error(err);