npm_microservice 1.0.27 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +3 -1
  2. package/dist/service.js +5 -2
  3. package/dist/services/BaseService.js +5 -2
  4. package/dist/services/CacheService.js +5 -2
  5. package/dist/services/SettingService.js +5 -2
  6. package/dist/services/app/AppTestService.js +5 -2
  7. package/dist/services/app/BannerService.js +5 -2
  8. package/dist/services/app/CategoryService.js +5 -2
  9. package/dist/services/app/NewService.js +5 -2
  10. package/dist/services/app/RecommendedCourseService.js +5 -2
  11. package/dist/services/app/SettingAppService.js +5 -2
  12. package/dist/services/app/TargetService.js +5 -2
  13. package/dist/services/call_center/CategoryService.js +5 -2
  14. package/dist/services/call_center/TicketActivityService.js +5 -2
  15. package/dist/services/call_center/TicketService.js +5 -2
  16. package/dist/services/call_center/TicketTemplateService.js +5 -2
  17. package/dist/services/call_center/TicketTopicService.js +5 -2
  18. package/dist/services/course/CategoryService.js +5 -2
  19. package/dist/services/course/CourseLessonService.js +5 -2
  20. package/dist/services/course/StudentService.js +5 -2
  21. package/dist/services/crm/ContactsService.js +5 -2
  22. package/dist/services/crm/DeviceService.js +5 -2
  23. package/dist/services/crm/OpportunitiesService.js +5 -2
  24. package/dist/services/finance/InvoicesCancelService.js +5 -2
  25. package/dist/services/finance/InvoicesDetailService.js +5 -2
  26. package/dist/services/finance/InvoicesLogsAssignService.js +5 -2
  27. package/dist/services/finance/InvoicesService.js +5 -2
  28. package/dist/services/finance/PaymentRequestService.js +5 -2
  29. package/dist/services/finance/PaymentService.js +5 -2
  30. package/dist/services/finance/VouchersCategoryService.js +5 -2
  31. package/dist/services/finance/VouchersService.js +5 -2
  32. package/dist/services/finance/WalletTransactionService.js +5 -2
  33. package/dist/services/finance/WalletsService.js +5 -2
  34. package/dist/services/hr/AllowanceService.js +5 -2
  35. package/dist/services/hr/AnnualLeaveService.js +5 -2
  36. package/dist/services/hr/CategoryService.js +5 -2
  37. package/dist/services/hr/DepartmentService.js +5 -2
  38. package/dist/services/hr/DeviceService.js +5 -2
  39. package/dist/services/hr/DocumentService.js +5 -2
  40. package/dist/services/hr/EmployeeExtendService.js +5 -2
  41. package/dist/services/hr/EmployeeExtendTempService.js +5 -2
  42. package/dist/services/hr/EmployeeLeaveService.js +5 -2
  43. package/dist/services/hr/EmployeeQuitService.js +5 -2
  44. package/dist/services/hr/EmployeeService.js +5 -2
  45. package/dist/services/hr/EmployeeShiftService.js +5 -2
  46. package/dist/services/hr/HolidayService.js +5 -2
  47. package/dist/services/hr/JobTitleService.js +5 -2
  48. package/dist/services/hr/PositionService.js +5 -2
  49. package/dist/services/hr/ReasonTypeService.js +5 -2
  50. package/dist/services/hr/ResignationService.js +5 -2
  51. package/dist/services/hr/SalaryService.js +5 -2
  52. package/dist/services/hr/ScheduleOnlineService.js +5 -2
  53. package/dist/services/hr/ScheduleService.js +5 -2
  54. package/dist/services/hr/SettingDocumentService.js +5 -2
  55. package/dist/services/hr/ShiftService.js +5 -2
  56. package/dist/services/hr/ShiftsCustomerCareService.js +5 -2
  57. package/dist/services/hr/TicketExtendService.js +5 -2
  58. package/dist/services/hr/TicketService.js +5 -2
  59. package/dist/services/hr/TicketTypeService.js +5 -2
  60. package/dist/services/hr/TrackingConfirmService.js +5 -2
  61. package/dist/services/hr/TrackingErrorService.js +5 -2
  62. package/dist/services/inventory/InventoryService.js +5 -2
  63. package/dist/services/inventory/LogService.js +5 -2
  64. package/dist/services/inventory/ProductService.js +5 -2
  65. package/dist/services/inventory/ProductShipmentService.js +5 -2
  66. package/dist/services/inventory/StoreService.js +5 -2
  67. package/dist/services/inventory/SupplierService.js +5 -2
  68. package/dist/services/inventory/TransactionDetailService.js +5 -2
  69. package/dist/services/inventory/TransactionService.js +5 -2
  70. package/dist/services/lms/AlbumCategoryService.js +5 -2
  71. package/dist/services/lms/AlbumFileService.js +5 -2
  72. package/dist/services/lms/AlbumService.js +5 -2
  73. package/dist/services/lms/ClassScheduleService.js +5 -2
  74. package/dist/services/lms/ClassesService.js +5 -2
  75. package/dist/services/lms/CourseLessonService.js +5 -2
  76. package/dist/services/lms/CoursePriceService.js +5 -2
  77. package/dist/services/lms/CourseProductService.js +5 -2
  78. package/dist/services/lms/CourseService.js +5 -2
  79. package/dist/services/lms/DocumentCategoryService.js +5 -2
  80. package/dist/services/lms/DocumentService.js +5 -2
  81. package/dist/services/lms/LicenseService.js +5 -2
  82. package/dist/services/lms/PracticeResultService.js +5 -2
  83. package/dist/services/lms/PracticeService.js +5 -2
  84. package/dist/services/lms/StudentAgainService.js +5 -2
  85. package/dist/services/lms/StudentDocumentService.js +5 -2
  86. package/dist/services/lms/StudentExamTimeService.js +5 -2
  87. package/dist/services/lms/StudentReviewService.js +5 -2
  88. package/dist/services/lms/StudentScoreService.js +5 -2
  89. package/dist/services/lms/StudentService.js +5 -2
  90. package/dist/services/lms/StudentSettingReviewService.js +5 -2
  91. package/dist/services/lms/StudentTrackingService.js +5 -2
  92. package/dist/services/lms/StudentTrialService.js +5 -2
  93. package/dist/services/notification/AppService.js +5 -2
  94. package/dist/services/notification/NotificationService.js +5 -2
  95. package/dist/services/online/CourseLessonService.js +5 -2
  96. package/dist/services/online/CourseService.js +5 -2
  97. package/dist/services/online/StudentService.js +5 -2
  98. package/dist/services/org/BranchRequestService.js +5 -2
  99. package/dist/services/org/BranchService.js +5 -2
  100. package/dist/services/org/BranchToMacsService.js +5 -2
  101. package/dist/services/org/BrandService.js +5 -2
  102. package/dist/services/org/CitiesService.js +5 -2
  103. package/dist/services/org/LegalEntityService.js +5 -2
  104. package/dist/services/pm/NoteService.js +5 -2
  105. package/dist/services/pm/TaskService.js +5 -2
  106. package/dist/services/support/CommentService.js +5 -2
  107. package/dist/services/test/EduTestService.js +5 -2
  108. package/package.json +1 -1
package/README.md CHANGED
@@ -28,7 +28,9 @@ copy folder dist => dự án
28
28
  Kiểm thử
29
29
  ```
30
30
 
31
+ npm run build
31
32
  npm version patch --no-git-tag-version # lên 1.0.3
32
33
  git add package.json package-lock.json
33
34
  git commit -m "chore: bump version to 1.0.3"
34
- npm publish --access public
35
+ npm publish --access public
36
+ git push
package/dist/service.js CHANGED
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -31,8 +31,11 @@ var CacheService = class {
31
31
  }
32
32
  // Lấy cache theo nhiều ids
33
33
  async getCacheByIds(ids = []) {
34
- if (!this.isCache || !this.redis) return [];
35
- const keys = ids.map(
34
+ const validIds = (ids || []).filter(
35
+ (id) => id !== null && id !== void 0 && id !== ""
36
+ );
37
+ if (!this.isCache || !this.redis || !validIds.length) return [];
38
+ const keys = validIds.map(
36
39
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
37
40
  );
38
41
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);
@@ -213,8 +213,11 @@ var require_CacheService = __commonJS({
213
213
  }
214
214
  // Lấy cache theo nhiều ids
215
215
  async getCacheByIds(ids = []) {
216
- if (!this.isCache || !this.redis) return [];
217
- const keys = ids.map(
216
+ const validIds = (ids || []).filter(
217
+ (id) => id !== null && id !== void 0 && id !== ""
218
+ );
219
+ if (!this.isCache || !this.redis || !validIds.length) return [];
220
+ const keys = validIds.map(
218
221
  (id) => `${this.configService}.${this.service || "unknown"}.${this.module || "unknown"}.id:${id}`
219
222
  );
220
223
  const results = await this.redis.mget(keys);