chore: run prettier format

This commit is contained in:
Julian Tölle 2021-05-25 16:01:55 +02:00
parent b6c7c9e16d
commit f56548e432
12 changed files with 95 additions and 95 deletions

View file

@ -46,9 +46,7 @@ export class AuthService {
return user;
}
async createSession(
user: User
): Promise<{
async createSession(user: User): Promise<{
session: AuthSession;
refreshToken: string;
}> {

View file

@ -16,7 +16,8 @@ const primaryUUIDColumn: TableColumnOptions = {
};
export class CreateAuthSessionsTable0000000000004
implements MigrationInterface {
implements MigrationInterface
{
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({

View file

@ -1,7 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { ReportsController } from './reports.controller';
import { Test, TestingModule } from "@nestjs/testing";
import { ReportsController } from "./reports.controller";
describe('Reports Controller', () => {
describe("Reports Controller", () => {
let controller: ReportsController;
beforeEach(async () => {
@ -12,7 +12,7 @@ describe('Reports Controller', () => {
controller = module.get<ReportsController>(ReportsController);
});
it('should be defined', () => {
it("should be defined", () => {
expect(controller).toBeDefined();
});
});

View file

@ -1,7 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { ReportsService } from './reports.service';
import { Test, TestingModule } from "@nestjs/testing";
import { ReportsService } from "./reports.service";
describe('ReportsService', () => {
describe("ReportsService", () => {
let service: ReportsService;
beforeEach(async () => {
@ -12,7 +12,7 @@ describe('ReportsService', () => {
service = module.get<ReportsService>(ReportsService);
});
it('should be defined', () => {
it("should be defined", () => {
expect(service).toBeDefined();
});
});

View file

@ -79,8 +79,9 @@ export class ReportsService {
const { eachOfInterval, isSame } = timeframeToDateFns[timeFrame];
const reportItems = eachOfInterval(interval).map((date) => {
const count = listens.filter((listen) => isSame(date, listen.playedAt))
.length;
const count = listens.filter((listen) =>
isSame(date, listen.playedAt)
).length;
return { date: formatISO(date), count };
});

View file

@ -263,7 +263,8 @@ export class SpotifyService {
this.logger.debug("refreshing spotify app access token");
this.appAccessTokenInProgress = new Promise(async (resolve, reject) => {
try {
const newAccessToken = await this.spotifyAuth.clientCredentialsGrant();
const newAccessToken =
await this.spotifyAuth.clientCredentialsGrant();
this.appAccessToken = newAccessToken;
this.logger.debug("spotify app access token refreshed");