Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
zhammer committed Feb 23, 2024
1 parent 466a7d9 commit 5238a9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions plugins/awards-backend/src/awards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,7 +31,11 @@ export class Awards {
);
}

async update(identityRef: string, uid: string, input: AwardInput): Promise<Award> {
async update(
identityRef: string,
uid: string,
input: AwardInput,
): Promise<Award> {
const award = await this.getAwardByUid(uid);

if (!award.owners.includes(identityRef)) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/awards-backend/src/service/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5238a9d

Please sign in to comment.