mirror of https://github.com/ghostfolio/ghostfolio
1 changed files with 13 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||
import { DataSource } from '@prisma/client'; |
|||
|
|||
export function getMaskedGhostfolioDataSource({ |
|||
dataSource, |
|||
ghostfolioDataSources |
|||
}: { |
|||
dataSource: DataSource; |
|||
ghostfolioDataSources: string[]; |
|||
}) { |
|||
return ghostfolioDataSources.includes(dataSource) |
|||
? DataSource.GHOSTFOLIO |
|||
: dataSource; |
|||
} |
|||
Loading…
Reference in new issue