Skip to content

Commit

Permalink
Revert "Add organizations modiule"
Browse files Browse the repository at this point in the history
This reverts commit d9fc939.
  • Loading branch information
hanriel committed Oct 5, 2023
1 parent 1ef2899 commit 994cec2
Show file tree
Hide file tree
Showing 8 changed files with 3,821 additions and 279 deletions.
3,865 changes: 3,786 additions & 79 deletions package-lock.json

Large diffs are not rendered by default.

37 changes: 34 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/cli": "^10.0.0",
Expand All @@ -21,35 +26,61 @@
"@nestjs/core": "^10.0.0",
"@nestjs/jwt": "^10.1.0",
"@nestjs/mapped-types": "*",
"@nestjs/passport": "^10.0.2",
"@types/multer": "^1.4.7",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/schedule": "^3.0.4",
"@nestjs/swagger": "^7.1.2",
"@nestjs/typeorm": "^10.0.0",
"@types/express": "^4.17.17",
"@types/multer": "^1.4.7",
"axios": "^1.5.1",
"axios-cookiejar-support": "^4.0.7",
"mysql2": "^3.5.2",
"nestjs-telegraf": "^2.7.0",
"node-telegram-bot-api": "^0.63.0",
"passport": "^0.6.0",
"passport-local": "^1.0.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1",
"telegraf": "^4.14.0",
"typeorm": "^0.3.17"
},
"devDependencies": {
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.8",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
5 changes: 1 addition & 4 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import { ConfigModule } from '@nestjs/config';
import { AuthModule } from './auth/auth.module';
import { ScheduleModule } from '@nestjs/schedule';
import { TelegramModule } from './telegram/telegram.module';
import { OrganizationsModule } from './organizations/organizations.module';
import { OrganizationEntity } from './organizations/entities/organization.entity';

@Module({
imports: [
Expand All @@ -46,15 +44,14 @@ import { OrganizationEntity } from './organizations/entities/organization.entity
username: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
entities: [UserEntity, FileEntity, OrganizationEntity],
entities: [UserEntity, FileEntity],
synchronize: true,
charset: 'utf8mb4',
}),
TelegramModule,
UsersModule,
FilesModule,
AuthModule,
OrganizationsModule,
],
controllers: [AppController],
providers: [AppService],
Expand Down
30 changes: 0 additions & 30 deletions src/organizations/dto/create-organization.dto.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/organizations/entities/organization.entity.ts

This file was deleted.

39 changes: 0 additions & 39 deletions src/organizations/organizations.controller.ts

This file was deleted.

35 changes: 0 additions & 35 deletions src/organizations/organizations.module.ts

This file was deleted.

51 changes: 0 additions & 51 deletions src/organizations/organizations.service.ts

This file was deleted.

0 comments on commit 994cec2

Please sign in to comment.