Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #111 from vivitek/feature/openvvrt
Browse files Browse the repository at this point in the history
Feature/openvvrt
  • Loading branch information
thmarinho authored Aug 2, 2021
2 parents 0180eaa + abad470 commit c1f35c9
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 280 deletions.
4 changes: 2 additions & 2 deletions server/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ConfigModule } from './config/config.module';
import { BeamsModule } from './beams/beams.module';
import { GraphQLModule } from '@nestjs/graphql';
import { AppController } from './app.controller';
import { BalenaModule } from './balena/balena.module';
import { OpenVVRTModule } from './openvvrt/openvvrt.module';

const MODULES = [
MongooseModule.forRoot(`mongodb:https://${process.env.MONGO}/vivi`),
Expand All @@ -30,7 +30,7 @@ const MODULES = [
ServiceModule,
ConfigModule,
BeamsModule,
BalenaModule,
OpenVVRTModule
];

@Module({
Expand Down
1 change: 0 additions & 1 deletion server/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class AuthService {
}

private generateToken(user: User): string {
const now = Date.now()
return this.jwtService.sign(
{
...user.toJSON(),
Expand Down
10 changes: 0 additions & 10 deletions server/src/balena/balena.module.ts

This file was deleted.

58 changes: 0 additions & 58 deletions server/src/balena/balena.resolver.ts

This file was deleted.

31 changes: 0 additions & 31 deletions server/src/balena/balena.service.ts

This file was deleted.

54 changes: 0 additions & 54 deletions server/src/balena/balena.utils.ts

This file was deleted.

99 changes: 0 additions & 99 deletions server/src/balena/schema/balena.schema.ts

This file was deleted.

2 changes: 1 addition & 1 deletion server/src/ban/ban.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class BanResolver {
}

@Mutation(() => Boolean)
async deleteBansByRouter(@Args('routerId') routerId: string): Promise<Boolean> {
async deleteBansByRouter(@Args('routerId') routerId: string): Promise<boolean> {
return await this.banService.deleteByRouter(routerId);
}

Expand Down
8 changes: 8 additions & 0 deletions server/src/openvvrt/openvvrt.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Module } from "@nestjs/common"
import { OpenVVRTResolver } from "./openvvrt.resolver"
import { OpenVVRTService } from "./openvvrt.service"

@Module({
providers: [OpenVVRTResolver, OpenVVRTService]
})
export class OpenVVRTModule {}
Loading

0 comments on commit c1f35c9

Please sign in to comment.