Skip to content

Commit

Permalink
eslint: Address errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Oct 20, 2023
1 parent 764731d commit b187047
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions apps/api/src/affiliate/affiliate.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { KeycloakTokenParsed, isAdmin } from '../auth/keycloak'
import { AuthenticatedUser, Public } from 'nest-keycloak-connect'
import { AffiliateService } from './affiliate.service'
import { AffiliateStatusUpdateDto } from './dto/affiliate-status-update.dto'
import { getPaymentReference } from '../campaign/helpers/payment-reference'
import { CreateAffiliateDonation } from './dto/create-affiliate-donation.dto'
import { DonationsService } from '../donations/donations.service'
import { CancelAffiliateDonation } from './dto/cancel-affiliate-donation.dto'
Expand Down Expand Up @@ -89,8 +88,8 @@ export class AffiliateController {
const affiliateDonationDto: CreateAffiliateDonation = {
...donation,
affiliateId: affiliate.id,
personId: donation.isAnonymous ? null : affiliate.company.person!.id,
billingEmail: affiliate.company.person!.email,
personId: donation.isAnonymous ? null : affiliate.company.person.id,
billingEmail: affiliate.company.person.email,
toEntity: donation.toEntity,
}

Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class AuthService {

async createUser(
registerDto: RegisterDto,
isCorporateReg: boolean = false,
isCorporateReg = false,
): Promise<Person | ErrorResponse> {
let person: Person
try {
Expand Down Expand Up @@ -234,7 +234,7 @@ export class AuthService {
private async createKeycloakUser(
registerDto: RegisterDto,
verifyEmail: boolean,
activeProfile: boolean = true,
activeProfile = true,
) {
return await this.admin.users.create({
username: registerDto.email,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '@nestjs/common'
import { ApiQuery, ApiTags } from '@nestjs/swagger'
import { RealmViewSupporters, ViewSupporters } from '@podkrepi-bg/podkrepi-types'
import { Roles, RoleMatchingMode, AuthenticatedUser, Public } from 'nest-keycloak-connect'
import { Roles, RoleMatchingMode, AuthenticatedUser } from 'nest-keycloak-connect'
import { KeycloakTokenParsed, isAdmin } from '../auth/keycloak'
import { BankTransactionsService } from './bank-transactions.service'
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Response } from 'express'
import { CreateBankPaymentDto } from '../donations/dto/create-bank-payment.dto'
import { DonationsService } from '../donations/donations.service'
import { IrisTasks } from '../tasks/bank-import/import-transactions.task'
import { IrisIbanAccountInfo, IrisTransactionInfo } from '../tasks/bank-import/dto/response.dto'
import { IrisIbanAccountInfoDto } from './dto/iris-bank-account-info.dto'
import { IrisTransactionInfoDto } from './dto/iris-bank-transaction-info.dto'

Expand Down
1 change: 0 additions & 1 deletion apps/api/src/donations/donations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ConfigService } from '@nestjs/config'
import { InjectStripeClient } from '@golevelup/nestjs-stripe'
import { BadRequestException, Injectable, Logger, NotFoundException } from '@nestjs/common'
import {
AffiliateStatus,
Campaign,
Donation,
DonationStatus,
Expand Down

0 comments on commit b187047

Please sign in to comment.