mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Improve handling of platforms * Fix issue with pagination * Update changelogpull/1818/head
Thomas Kaul
2 years ago
committed by
GitHub
7 changed files with 56 additions and 15 deletions
@ -0,0 +1,11 @@ |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma.module'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
import { PlatformService } from './platform.service'; |
|||
|
|||
@Module({ |
|||
exports: [PlatformService], |
|||
imports: [PrismaModule], |
|||
providers: [PlatformService] |
|||
}) |
|||
export class PlatformModule {} |
@ -0,0 +1,11 @@ |
|||
import { PrismaService } from '@ghostfolio/api/services/prisma.service'; |
|||
import { Injectable } from '@nestjs/common'; |
|||
|
|||
@Injectable() |
|||
export class PlatformService { |
|||
public constructor(private readonly prismaService: PrismaService) {} |
|||
|
|||
public async get() { |
|||
return this.prismaService.platform.findMany(); |
|||
} |
|||
} |
Loading…
Reference in new issue