Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
♻️ Use relative import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 31, 2020
1 parent c5cb8d8 commit 6c2897d
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 58 deletions.
10 changes: 5 additions & 5 deletions src/modules/access-tokens/access-tokens.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
Query,
} from '@nestjs/common';
import { accessTokens } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import {
CreateAccessTokenDto,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/access-tokens/access-tokens.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
accessTokensWhereInput,
accessTokensWhereUniqueInput,
} from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import { PrismaService } from '../prisma/prisma.service';

@Injectable()
Expand Down
10 changes: 5 additions & 5 deletions src/modules/api-keys/api-keys.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
Query,
} from '@nestjs/common';
import { apiKeys } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import {
CreateApiKeyDto,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/api-keys/api-keys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
apiKeysWhereInput,
apiKeysWhereUniqueInput,
} from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import { PrismaService } from '../prisma/prisma.service';

@Injectable()
Expand Down
10 changes: 5 additions & 5 deletions src/modules/approved-subnets/approved-subnets.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
Query,
} from '@nestjs/common';
import { approvedSubnets } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import { ApprovedSubnetsService } from './approved-subnets.service';

Expand Down
2 changes: 1 addition & 1 deletion src/modules/approved-subnets/approved-subnets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
approvedSubnetsWhereInput,
approvedSubnetsWhereUniqueInput,
} from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import { PrismaService } from '../prisma/prisma.service';
import anonymize from 'ip-anonymize';
import { compare, hash } from 'bcrypt';
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '@nestjs/common';
import { users } from '@prisma/client';
import { RateLimit } from 'nestjs-rate-limiter';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import {
ForgotPasswordDto,
LoginDto,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { compare, hash } from 'bcrypt';
import anonymize from 'ip-anonymize';
import { authenticator } from 'otplib';
import qrcode from 'qrcode';
import { safeEmail } from '../../../src/helpers/safe-email';
import { safeEmail } from '../../helpers/safe-email';
import { ApprovedSubnetsService } from '../approved-subnets/approved-subnets.service';
import { EmailService } from '../email/email.service';
import { GeolocationService } from '../geolocation/geolocation.service';
Expand Down
10 changes: 5 additions & 5 deletions src/modules/emails/emails.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
Query,
} from '@nestjs/common';
import { emails } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import { CreateEmailDto } from './emails.dto';
import { EmailsService } from './emails.service';
Expand Down
4 changes: 2 additions & 2 deletions src/modules/emails/emails.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
emailsWhereInput,
emailsWhereUniqueInput,
} from '@prisma/client';
import { safeEmail } from '../../../src/helpers/safe-email';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { safeEmail } from '../../helpers/safe-email';
import { Expose } from '../../modules/prisma/prisma.interface';
import { AuthService } from '../auth/auth.service';
import { PrismaService } from '../prisma/prisma.service';
import { UsersService } from '../users/users.service';
Expand Down
10 changes: 5 additions & 5 deletions src/modules/groups/groups.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import {
Query,
} from '@nestjs/common';
import { groups } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import { ReplaceGroupDto, UpdateGroupDto } from './groups.dto';
import { GroupsService } from './groups.service';
Expand Down
2 changes: 1 addition & 1 deletion src/modules/groups/groups.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
groupsWhereInput,
groupsWhereUniqueInput,
} from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import { PrismaService } from '../prisma/prisma.service';

@Injectable()
Expand Down
10 changes: 5 additions & 5 deletions src/modules/memberships/memberships-group.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
Query,
} from '@nestjs/common';
import { memberships } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import {
CreateGroupMembershipDto,
Expand Down
10 changes: 5 additions & 5 deletions src/modules/memberships/memberships-user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
Query,
} from '@nestjs/common';
import { memberships } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import { CreateGroupDto } from '../groups/groups.dto';
import { MembershipsService } from './memberships.service';
Expand Down
4 changes: 2 additions & 2 deletions src/modules/memberships/memberships.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
membershipsWhereUniqueInput,
users,
} from '@prisma/client';
import { safeEmail } from '../../../src/helpers/safe-email';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { safeEmail } from '../../helpers/safe-email';
import { Expose } from '../../modules/prisma/prisma.interface';
import { AuthService } from '../auth/auth.service';
import { EmailService } from '../email/email.service';
import { PrismaService } from '../prisma/prisma.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Post,
} from '@nestjs/common';
import { users } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import { Scopes } from '../auth/scope.decorator';
import { EnableTotpMfaDto } from './multi-factor-authentication.dto';
import { MultiFactorAuthenticationService } from './multi-factor-authentication.service';
Expand Down
10 changes: 5 additions & 5 deletions src/modules/sessions/sessions.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
Query,
} from '@nestjs/common';
import { sessions } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import { SessionsService } from './sessions.service';

Expand Down
2 changes: 1 addition & 1 deletion src/modules/sessions/sessions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
sessionsWhereInput,
sessionsWhereUniqueInput,
} from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import { PrismaService } from '../prisma/prisma.service';

@Injectable()
Expand Down
10 changes: 5 additions & 5 deletions src/modules/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
Query,
} from '@nestjs/common';
import { users } from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { CursorPipe } from '../../../src/pipes/cursor.pipe';
import { OptionalIntPipe } from '../../../src/pipes/optional-int.pipe';
import { OrderByPipe } from '../../../src/pipes/order-by.pipe';
import { WherePipe } from '../../../src/pipes/where.pipe';
import { Expose } from '../../modules/prisma/prisma.interface';
import { CursorPipe } from '../../pipes/cursor.pipe';
import { OptionalIntPipe } from '../../pipes/optional-int.pipe';
import { OrderByPipe } from '../../pipes/order-by.pipe';
import { WherePipe } from '../../pipes/where.pipe';
import { Scopes } from '../auth/scope.decorator';
import { UpdateUserDto } from './users.dto';
import { UsersService } from './users.service';
Expand Down
2 changes: 1 addition & 1 deletion src/modules/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
usersWhereInput,
usersOrderByInput,
} from '@prisma/client';
import { Expose } from '../../../src/modules/prisma/prisma.interface';
import { Expose } from '../../modules/prisma/prisma.interface';
import { AuthService } from '../auth/auth.service';
import { compare } from 'bcrypt';
import { PasswordUpdateInput } from './users.interface';
Expand Down

0 comments on commit 6c2897d

Please sign in to comment.