Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
IkeHunter committed Jan 29, 2025
1 parent d82f1b2 commit cd44e16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class BaseEntity extends TypeormBase {

@DeleteDateColumn({ nullable: true })
deleted_on: Date

serialize() {
return {
id: this.id,
Expand Down
5 changes: 4 additions & 1 deletion src/jukebox/dto/jukebox-interaction.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export class CreateJukeboxInteractionDto implements IJukeboxInteractionCreate {
queue_index?: number
}

export class JukeboxInteractionDto extends CreateJukeboxInteractionDto implements IJukeboxInteraction {
export class JukeboxInteractionDto
extends CreateJukeboxInteractionDto
implements IJukeboxInteraction
{
jukebox_id: number
user: IUser
}
4 changes: 2 additions & 2 deletions src/jukebox/jukebox.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class JukeboxService {
is_playing: false,
}
}

Object.assign(nextState, payload)
await this.setPlayerState(jukeboxId, nextState)

Expand Down Expand Up @@ -397,7 +397,7 @@ export class JukeboxService {

const queuedTrack = await this.queueSvc.queueTrack(jukeboxId, track, meta.username)
const queue = await this.queueSvc.getTrackQueue(jukeboxId)
console.log("queue:", queue)
console.log('queue:', queue)

if (queue.length === 1) {
await this.spotifySvc.queueTrack(account, track.uri)
Expand Down

0 comments on commit cd44e16

Please sign in to comment.