Browse Source

Initial setup

pull/5533/head
Thomas Kaul 6 days ago
parent
commit
770c688330
  1. 4
      apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.service.ts

4
apps/api/src/app/endpoints/data-providers/ghostfolio/ghostfolio.service.ts

@ -57,11 +57,12 @@ export class GhostfolioService {
symbol symbol
}) })
.then(async (assetProfile) => { .then(async (assetProfile) => {
if (assetProfile) {
await this.prismaService.dataProviderGhostfolioResolvedAssetProfile.upsert( await this.prismaService.dataProviderGhostfolioResolvedAssetProfile.upsert(
{ {
create: { create: {
symbol, symbol,
currency: assetProfile.currency ?? '', currency: assetProfile.currency,
dataSource: assetProfile.dataSource dataSource: assetProfile.dataSource
}, },
update: { update: {
@ -77,6 +78,7 @@ export class GhostfolioService {
} }
} }
); );
}
result = { result = {
...result, ...result,

Loading…
Cancel
Save