mm-share-lib 0.0.21 → 0.0.22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm-share-lib",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Share the generic service, entity, dto.",
5
5
  "author": "Mesa SOT",
6
6
  "license": "MIT",
@@ -42,13 +42,11 @@ export abstract class ClientService<
42
42
  async searchDocument(
43
43
  searchParameters: SearchParams,
44
44
  options: SearchOptions,
45
- filter?: BaseFilterDto,
46
45
  ): Promise<SearchResponse<any>> {
47
46
  return this.searchDocumentByCollection(
48
47
  this.getCollectionName(),
49
48
  searchParameters,
50
49
  options,
51
- filter,
52
50
  );
53
51
  }
54
52
 
@@ -56,12 +54,9 @@ export abstract class ClientService<
56
54
  collection: string,
57
55
  searchParameters: SearchParams,
58
56
  options: SearchOptions,
59
- filter?: BaseFilterDto,
60
57
  ): Promise<SearchResponse<any>> {
61
58
  try {
62
- const { per_page = 25 } = searchParameters;
63
- // TODO: should be support with include/exclude ids.
64
- const includeIds: number[] = filter?.includeIds || [];
59
+ const { includeIds = [], per_page = 25 } = { ...searchParameters };
65
60
  const includeDocuments = [];
66
61
 
67
62
  if (includeIds.length > 0) {