Skip to content

Commit

Permalink
Merge pull request #11 from music10/feature/10
Browse files Browse the repository at this point in the history
#10 fix fatal error
  • Loading branch information
dergunovd authored Jan 16, 2021
2 parents 54dc5df + 54067b7 commit 8b5cf33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ npm start
```bash
sudo docker rm --force musiq
sudo docker pull docker.pkg.github.com/music10/server/server:latest
sudo docker run -p 5001:3001 -p 5000:3000 -d --name musiq docker.pkg.github.com/music10/server/server:latest
sudo docker run -p 5001:3001 -p 5000:3000 -d --name musiq --restart always docker.pkg.github.com/music10/server/server:latest
```
3 changes: 1 addition & 2 deletions src/modules/api/spotify/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export class ApiService implements MusicApi {
this.httpService.axiosRef.interceptors.response.use(
(value) => value,
async (error) => {
console.log(error);
if (
error.response?.data?.error?.message === 'The access token expired'
) {
Expand Down Expand Up @@ -123,7 +122,7 @@ export class ApiService implements MusicApi {
const responseHandler = ({ data }) => {
tracks.push(
...data.items
.filter(({ track }) => track.preview_url)
.filter(({ track }) => track?.preview_url)
.map(({ track }) => ({
name: track.name,
id: track.id,
Expand Down

0 comments on commit 8b5cf33

Please sign in to comment.