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