Browse Source

fix(lint): resolve lint errors

pull/7647/head
KenTandrian 1 day ago
parent
commit
040d5f37a9
  1. 2
      apps/api/src/app/activities/activities.controller.ts
  2. 2
      apps/api/src/app/import/import.service.ts

2
apps/api/src/app/activities/activities.controller.ts

@ -301,7 +301,7 @@ export class ActivitiesController {
id id
}); });
if (!originalActivity || originalActivity.userId !== this.request.user.id) { if (originalActivity?.userId !== this.request.user.id) {
throw new HttpException( throw new HttpException(
getReasonPhrase(StatusCodes.FORBIDDEN), getReasonPhrase(StatusCodes.FORBIDDEN),
StatusCodes.FORBIDDEN StatusCodes.FORBIDDEN

2
apps/api/src/app/import/import.service.ts

@ -573,7 +573,7 @@ export class ImportService {
// If there is no asset profile or if the asset profile belongs to a // If there is no asset profile or if the asset profile belongs to a
// different user, then reuse the custom asset profile of the user or // different user, then reuse the custom asset profile of the user or
// create a new asset profile // create a new asset profile
if (!existingAssetProfile || existingAssetProfile.userId !== user.id) { if (existingAssetProfile?.userId !== user.id) {
// Check if the user has a custom asset profile with the same name. // Check if the user has a custom asset profile with the same name.
// Skip asset profiles with a legacy free-text symbol as they would // Skip asset profiles with a legacy free-text symbol as they would
// fail the symbol validation on a future import. // fail the symbol validation on a future import.

Loading…
Cancel
Save