From 5238a9d7e07f38d0aa6b5f27490f1cdbc1094e7d Mon Sep 17 00:00:00 2001 From: Zach Hammer Date: Fri, 23 Feb 2024 08:51:06 -0500 Subject: [PATCH] run prettier --- plugins/awards-backend/src/awards.ts | 14 +++++++++----- plugins/awards-backend/src/service/router.ts | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/awards-backend/src/awards.ts b/plugins/awards-backend/src/awards.ts index be9f1b7..1da7f53 100644 --- a/plugins/awards-backend/src/awards.ts +++ b/plugins/awards-backend/src/awards.ts @@ -2,10 +2,10 @@ * Copyright SeatGeek * Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms. */ -import { Award, AwardInput } from "@seatgeek/backstage-plugin-awards-common"; -import { AwardsStore } from "./database/awards"; -import { NotFoundError } from "@backstage/errors"; -import { Logger } from "winston"; +import { NotFoundError } from '@backstage/errors'; +import { Award, AwardInput } from '@seatgeek/backstage-plugin-awards-common'; +import { Logger } from 'winston'; +import { AwardsStore } from './database/awards'; export class Awards { private readonly db: AwardsStore; @@ -31,7 +31,11 @@ export class Awards { ); } - async update(identityRef: string, uid: string, input: AwardInput): Promise { + async update( + identityRef: string, + uid: string, + input: AwardInput, + ): Promise { const award = await this.getAwardByUid(uid); if (!award.owners.includes(identityRef)) { diff --git a/plugins/awards-backend/src/service/router.ts b/plugins/awards-backend/src/service/router.ts index a690fc9..c970585 100644 --- a/plugins/awards-backend/src/service/router.ts +++ b/plugins/awards-backend/src/service/router.ts @@ -8,8 +8,8 @@ import { IdentityApi } from '@backstage/plugin-auth-node'; import express from 'express'; import Router from 'express-promise-router'; import { Logger } from 'winston'; -import { DatabaseAwardsStore } from '../database/awards'; import { Awards } from '../awards'; +import { DatabaseAwardsStore } from '../database/awards'; export interface RouterOptions { identity: IdentityApi;