Skip to content

Commit

Permalink
fix(currency): add entity currency to resource-srv
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Sep 25, 2024
1 parent 4e4ad26 commit e3b5fec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cfg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"country",
"contact_point",
"credential",
"currency",
"locale",
"location",
"notification",
Expand Down Expand Up @@ -251,6 +252,7 @@
"country",
"contact_point",
"credential",
"currency",
"locale",
"location",
"notification",
Expand Down Expand Up @@ -431,6 +433,7 @@
"countrys",
"contact_points",
"credentials",
"currencys",
"locales",
"locations",
"notifications",
Expand Down
2 changes: 1 addition & 1 deletion src/service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as _ from 'lodash-es';
import { Logger } from 'winston';
import { ResourcesAPIBase, ServiceBase } from '@restorecommerce/resource-base-interface';
import { DecisionResponse, Operation, PolicySetRQResponse, ResolvedSubject } from '@restorecommerce/acs-client';
import { Operation, PolicySetRQResponse, ResolvedSubject } from '@restorecommerce/acs-client';
import { AuthZAction } from '@restorecommerce/acs-client';
import { checkAccessRequest, getACSFilters, resolveSubject } from './utils.js';
import * as uuid from 'uuid';
Expand Down
6 changes: 6 additions & 0 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ import {
protoMetadata as credentialMeta,
CredentialServiceDefinition as credential
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/credential.js';
import {
protoMetadata as currencyMeta,
CurrencyServiceDefinition as currency
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/currency.js';
import {
protoMetadata as localeMeta,
LocaleServiceDefinition as locale
Expand Down Expand Up @@ -124,6 +128,7 @@ registerProtoMeta(
countryMeta,
contactPointMeta,
credentialMeta,
currencyMeta,
localeMeta,
locationMeta,
organizationMeta,
Expand All @@ -149,6 +154,7 @@ const ServiceDefinitions: any = [
country,
contact_point,
credential,
currency,
locale,
location,
organization,
Expand Down

0 comments on commit e3b5fec

Please sign in to comment.