-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70a4ebb
commit 8bbd8cd
Showing
31 changed files
with
6,195 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,6 @@ pids | |
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
|
||
db/sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 20 additions & 6 deletions
26
packages/canyon-collect/src/apps/collect/collect.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { CollectController } from './collect.controller'; | ||
import { PrismaModule } from '../../prisma/prisma.module'; | ||
import { CoverageClientService } from './services/coverage-client.service'; | ||
import { CoverageMapClientService } from './services/coverage-map-client.service'; | ||
// import {AppController} from "../../app.controller"; | ||
// import {AppService} from "../../app.service"; | ||
import { CoveragediskService } from './services/core/coveragedisk.service'; | ||
import { ConsumerCoverageService } from './services/core/consumer-coverage.service'; | ||
import { CoveragediskEntity } from './entity/coveragedisk.entity'; | ||
import { TypeOrmModule } from '@nestjs/typeorm'; | ||
import { PrismaService } from '../../prisma/prisma.service'; | ||
|
||
@Module({ | ||
imports: [PrismaModule], | ||
imports: [TypeOrmModule.forFeature([CoveragediskEntity])], | ||
controllers: [CollectController], | ||
providers: [CoverageClientService, CoverageMapClientService], | ||
providers: [ | ||
PrismaService, | ||
CoverageClientService, | ||
CoverageMapClientService, | ||
ConsumerCoverageService, | ||
CoveragediskService, | ||
], | ||
}) | ||
export class CollectModule {} | ||
export class CollectModule { | ||
constructor( | ||
private readonly consumerCoverageService: ConsumerCoverageService, | ||
) { | ||
this.consumerCoverageService.invoke(); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
packages/canyon-collect/src/apps/collect/entity/coveragedisk.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; | ||
|
||
@Entity('coveragedisk') | ||
export class CoveragediskEntity { | ||
@PrimaryGeneratedColumn() | ||
id: number; | ||
|
||
@Column() | ||
pid: string; | ||
|
||
@Column() | ||
projectID: string; | ||
|
||
@Column() | ||
reportID: string; | ||
|
||
@Column() | ||
sha: string; | ||
|
||
@Column() | ||
data: string; | ||
|
||
@Column() | ||
createdAt: Date; | ||
} |
Oops, something went wrong.