chore(deps): update dependency passport-spotify to v2

This commit is contained in:
Renovate Bot 2021-08-14 17:30:38 +00:00 committed by Julian Tölle
parent d82644a761
commit 19d7700696
5 changed files with 90 additions and 96 deletions

View file

@ -58,7 +58,7 @@ describe("AuthService", () => {
profile: {
id: "FOOBAR",
displayName: "Max Mustermann",
photos: ["https://example.com/profile.jpeg"],
photos: [{ value: "https://example.com/profile.jpeg" }],
},
};

View file

@ -35,7 +35,7 @@ export class AuthService {
const user = await this.usersService.createOrUpdate({
displayName: profile.displayName,
photo: profile.photos.length > 0 ? profile.photos[0] : null,
photo: profile.photos.length > 0 ? profile.photos[0].value : null,
spotify: {
id: profile.id,
accessToken,

View file

@ -4,6 +4,6 @@ export class LoginDto {
profile: {
id: string;
displayName: string;
photos: string[];
photos: { value: string }[];
};
}