rez_core 5.0.50 → 5.0.52

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": "rez_core",
3
- "version": "5.0.50",
3
+ "version": "5.0.52",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -959,7 +959,7 @@ export class FilterService {
959
959
 
960
960
  const dayBefore = (() => {
961
961
  const d = new Date();
962
- d.setDate(d.getDate() - numVal - 1); // -1 because DB stores previous day
962
+ d.setDate(d.getDate() - (numVal + 1));
963
963
  return d.toISOString().split('T')[0];
964
964
  })();
965
965
 
@@ -999,7 +999,8 @@ export class FilterService {
999
999
  const monthBefore = (() => {
1000
1000
  const d = new Date();
1001
1001
  d.setMonth(d.getMonth() - numVal);
1002
- d.setDate(d.getDate() - 1); // adjust -1 day for DB shift
1002
+ d.setDate(1);
1003
+ d.setDate(d.getDate() - 1);
1003
1004
  return d.toISOString().split('T')[0];
1004
1005
  })();
1005
1006
 
@@ -1018,7 +1019,8 @@ export class FilterService {
1018
1019
  const monthAfter = (() => {
1019
1020
  const d = new Date();
1020
1021
  d.setMonth(d.getMonth() + numVal);
1021
- d.setDate(d.getDate() - 1); // adjust -1 for DB shift
1022
+ d.setDate(1);
1023
+ d.setDate(d.getDate() - 1);
1022
1024
  return d.toISOString().split('T')[0];
1023
1025
  })();
1024
1026
 
@@ -166,16 +166,7 @@ export class ListMasterService {
166
166
  inactiveIdsArray?: number[],
167
167
  loggedInUser?: UserData,
168
168
  ) {
169
- console.log(
170
- sourceList,
171
- 'sourceList',
172
- params,
173
- 'params',
174
- inactiveIdsArray,
175
- 'inactiveIdsArray',
176
- loggedInUser,
177
- 'loggedInUser',
178
- );
169
+
179
170
  let result: { label: string; value: number }[] = [];
180
171
  if (!sourceList) return result;
181
172