File size: 531 Bytes
a271c58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Injectable } from '@nestjs/common';
import { ErrorsRepository } from '@gitroom/nestjs-libraries/database/prisma/errors/errors.repository';

@Injectable()
export class ErrorsService {
  constructor(private _errorsRepository: ErrorsRepository) {}

  listErrors(params: {
    page?: number;
    limit?: number;
    platform?: string;
    email?: string;
    unknownFirst?: boolean;
  }) {
    return this._errorsRepository.listErrors(params);
  }

  listPlatforms() {
    return this._errorsRepository.listPlatforms();
  }
}