fetch data from non-working days API endpoint

45001-component-to-show-the-list-of-non-working-days-of-year
bsatarnejad 2 years ago
parent 7840a9820d
commit 67f49f38d0
  1. 3
      frontend/src/app/core/apiv3/endpoints/days/api-v3-days-paths.ts
  2. 2
      frontend/src/app/core/state/days/day.service.ts

@ -47,4 +47,7 @@ export class ApiV3DaysPaths extends ApiV3ResourceCollection<IDay, ApiV3DayPaths>
// /api/v3/days/week
public readonly week = new ApiV3GettableResource(this.apiRoot, this.path, 'week', this);
// /api/v3/days/nonWorkingDays
public readonly nonWorkingDays = new ApiV3GettableResource(this.apiRoot, this.path, 'non_working', this);
}

@ -30,6 +30,7 @@ export class DayResourceService extends ResourceCollectionService<IDay> {
return this
.apiV3Service
.days
.nonWorkingDays
.path;
}
@ -49,7 +50,6 @@ export class DayResourceService extends ResourceCollectionService<IDay> {
const filters:ApiV3ListFilter[] = [
['date', '<>d', [from, to]],
['working', '=', ['f']],
];
return this.require({ filters });

Loading…
Cancel
Save