Browse Source

Added Chunk Todos

pull/5027/head
Daniel Devaud 2 years ago
parent
commit
321602928f
  1. 5
      apps/api/src/app/order/order.service.ts
  2. 1
      apps/api/src/services/data-provider/manual/manual.service.ts
  3. 1
      apps/api/src/services/market-data/market-data.service.ts
  4. 2
      apps/api/src/services/symbol-profile/symbol-profile.service.ts

5
apps/api/src/app/order/order.service.ts

@ -274,6 +274,7 @@ export class OrderService {
{
AND: [
{
// TODO Chunk?
OR: filtersByAssetClass.map(({ id }) => {
return { assetClass: AssetClass[id] };
})
@ -288,6 +289,7 @@ export class OrderService {
},
{
SymbolProfileOverrides: {
// TODO Chunk?
OR: filtersByAssetClass.map(({ id }) => {
return { assetClass: AssetClass[id] };
})
@ -304,6 +306,7 @@ export class OrderService {
{
tags: {
some: {
// TODO Chunk?
OR: filtersByTag.map(({ id }) => {
return {
id: id
@ -316,6 +319,7 @@ export class OrderService {
SymbolProfile: {
tags: {
some: {
// TODO Chunk?
OR: filtersByTag.map(({ id }) => {
return { id };
})
@ -329,6 +333,7 @@ export class OrderService {
}
if (types) {
// TODO Chunk?
where.OR = types.map((type) => {
return {
type: {

1
apps/api/src/services/data-provider/manual/manual.service.ts

@ -161,6 +161,7 @@ export class ManualService implements DataProviderInterface {
take: symbols.length,
where: {
symbol: {
// TODO Chunk!
in: symbols
}
}

1
apps/api/src/services/market-data/market-data.service.ts

@ -74,6 +74,7 @@ export class MarketDataService {
}
],
where: {
//TODO Chunk!
OR: uniqueAssets.map(({ dataSource, symbol }) => {
return {
AND: [

2
apps/api/src/services/symbol-profile/symbol-profile.service.ts

@ -58,6 +58,7 @@ export class SymbolProfileService {
SymbolProfileOverrides: true
},
where: {
// TODO: CHUNK !
OR: aUniqueAssets.map(({ dataSource, symbol }) => {
return {
dataSource,
@ -83,6 +84,7 @@ export class SymbolProfileService {
},
where: {
id: {
//TODO CHUNK!!!!
in: symbolProfileIds.map((symbolProfileId) => {
return symbolProfileId;
})

Loading…
Cancel
Save