mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore(deps): update dependency passport-spotify to v2
This commit is contained in:
parent
d82644a761
commit
19d7700696
5 changed files with 90 additions and 96 deletions
|
|
@ -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" }],
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ export class LoginDto {
|
|||
profile: {
|
||||
id: string;
|
||||
displayName: string;
|
||||
photos: string[];
|
||||
photos: { value: string }[];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue