mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-19 01:55:48 -05:00
refactor: fix typo of service name
This commit is contained in:
parent
bb64f6c33f
commit
1ceb07b89e
4 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ import { JobsModule } from "./jobs/jobs.module";
|
||||||
import { PrismaModule } from "./prisma/prisma.module";
|
import { PrismaModule } from "./prisma/prisma.module";
|
||||||
import { ShareModule } from "./share/share.module";
|
import { ShareModule } from "./share/share.module";
|
||||||
import { UserModule } from "./user/user.module";
|
import { UserModule } from "./user/user.module";
|
||||||
import { ClamscanModule } from "./clamscan/clamscan.module";
|
import { ClamScanModule } from "./clamscan/clamscan.module";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -29,7 +29,7 @@ import { ClamscanModule } from "./clamscan/clamscan.module";
|
||||||
limit: 100,
|
limit: 100,
|
||||||
}),
|
}),
|
||||||
ScheduleModule.forRoot(),
|
ScheduleModule.forRoot(),
|
||||||
ClamscanModule,
|
ClamScanModule,
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,4 +7,4 @@ import { ClamScanService } from "./clamscan.service";
|
||||||
providers: [ClamScanService],
|
providers: [ClamScanService],
|
||||||
exports: [ClamScanService],
|
exports: [ClamScanService],
|
||||||
})
|
})
|
||||||
export class ClamscanModule {}
|
export class ClamScanModule {}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { forwardRef, Module } from "@nestjs/common";
|
import { forwardRef, Module } from "@nestjs/common";
|
||||||
import { JwtModule } from "@nestjs/jwt";
|
import { JwtModule } from "@nestjs/jwt";
|
||||||
import { ClamscanModule } from "src/clamscan/clamscan.module";
|
import { ClamScanModule } from "src/clamscan/clamscan.module";
|
||||||
import { EmailModule } from "src/email/email.module";
|
import { EmailModule } from "src/email/email.module";
|
||||||
import { FileModule } from "src/file/file.module";
|
import { FileModule } from "src/file/file.module";
|
||||||
import { ShareController } from "./share.controller";
|
import { ShareController } from "./share.controller";
|
||||||
|
@ -10,7 +10,7 @@ import { ShareService } from "./share.service";
|
||||||
imports: [
|
imports: [
|
||||||
JwtModule.register({}),
|
JwtModule.register({}),
|
||||||
EmailModule,
|
EmailModule,
|
||||||
ClamscanModule,
|
ClamScanModule,
|
||||||
forwardRef(() => FileModule),
|
forwardRef(() => FileModule),
|
||||||
],
|
],
|
||||||
controllers: [ShareController],
|
controllers: [ShareController],
|
||||||
|
|
|
@ -25,7 +25,7 @@ export class ShareService {
|
||||||
private emailService: EmailService,
|
private emailService: EmailService,
|
||||||
private config: ConfigService,
|
private config: ConfigService,
|
||||||
private jwtService: JwtService,
|
private jwtService: JwtService,
|
||||||
private clasmScanService: ClamScanService
|
private clamScanService: ClamScanService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
async create(share: CreateShareDTO, user?: User) {
|
async create(share: CreateShareDTO, user?: User) {
|
||||||
|
@ -126,7 +126,7 @@ export class ShareService {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if any file is malicious with ClamAV
|
// Check if any file is malicious with ClamAV
|
||||||
this.clasmScanService.checkAndRemove(share.id);
|
this.clamScanService.checkAndRemove(share.id);
|
||||||
|
|
||||||
return await this.prisma.share.update({
|
return await this.prisma.share.update({
|
||||||
where: { id },
|
where: { id },
|
||||||
|
|
Loading…
Add table
Reference in a new issue