mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore(lint): switch to eslint
This commit is contained in:
parent
f56548e432
commit
9b96d0fab4
29 changed files with 1609 additions and 113 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Entity, Column, PrimaryGeneratedColumn, OneToOne } from "typeorm";
|
||||
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||
import { SpotifyConnection } from "../sources/spotify/spotify-connection.entity";
|
||||
|
||||
@Entity()
|
||||
|
|
@ -12,6 +12,6 @@ export class User {
|
|||
@Column({ nullable: true })
|
||||
photo?: string;
|
||||
|
||||
@Column((type) => SpotifyConnection)
|
||||
@Column(() => SpotifyConnection)
|
||||
spotify: SpotifyConnection;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ export class UsersService {
|
|||
user: User,
|
||||
spotify: SpotifyConnection
|
||||
): Promise<void> {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
user.spotify = spotify;
|
||||
await this.userRepository.save(user);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue