chore(api): update dependencies

This commit is contained in:
Julian Tölle 2020-05-02 17:17:20 +02:00
parent 05f230a7ce
commit d881a78757
37 changed files with 4804 additions and 2700 deletions

View file

@ -14,7 +14,7 @@ export class AuthService {
async spotifyLogin({
accessToken,
refreshToken,
profile
profile,
}: LoginDto): Promise<User> {
const user = await this.usersService.createOrUpdate({
displayName: profile.displayName,
@ -22,8 +22,8 @@ export class AuthService {
spotify: {
id: profile.id,
accessToken,
refreshToken
}
refreshToken,
},
});
return user;
@ -33,7 +33,7 @@ export class AuthService {
const payload = {
sub: user.id,
name: user.displayName,
picture: user.photo
picture: user.photo,
};
const token = await this.jwtService.signAsync(payload);