mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore: run prettier format
This commit is contained in:
parent
b6c7c9e16d
commit
f56548e432
12 changed files with 95 additions and 95 deletions
|
|
@ -46,9 +46,7 @@ export class AuthService {
|
|||
return user;
|
||||
}
|
||||
|
||||
async createSession(
|
||||
user: User
|
||||
): Promise<{
|
||||
async createSession(user: User): Promise<{
|
||||
session: AuthSession;
|
||||
refreshToken: string;
|
||||
}> {
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue