Skip to content

Commit

Permalink
fixup! Replace artist and extraArtists with artists
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucki committed Aug 21, 2024
1 parent 5ab47b7 commit 32c865b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('StreamVerificationContainer', () => {
fetchMock.post('http://verification.nuclear/stream-mappings/top-stream', 404);
fetchMock.post({ url: 'http://verification.nuclear/stream-mappings/verify', body: {
stream_id: 'CuklIb9d3fI',
artists: ['test artist 1'],
artist: 'test artist 1',
title: 'test track 1',
source: 'Test Stream Provider',
author_id: '1'
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('StreamVerificationContainer', () => {
url: 'http://verification.nuclear/stream-mappings/unverify',
body: {
stream_id: 'CuklIb9d3fI',
artists: ['test artist 1'],
artist: 'test artist 1',
title: 'test track 1',
source: 'Test Stream Provider',
author_id: '1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const StreamVerificationContainer: React.FC = () => {
if (currentTrack && verificationStatus !== 'verified_by_user') {
setLoading(true);
StreamMappingsService.postStreamMapping({
artists: getTrackArtists(currentTrack),
artist: getTrackArtists(currentTrack)?.[0],
title: currentTrack.name,
source: selectedStreamProvider,
stream_id: head(currentTrack.streams).id,
Expand All @@ -93,7 +93,7 @@ export const StreamVerificationContainer: React.FC = () => {
if (currentTrack && verificationStatus === 'verified_by_user') {
setLoading(true);
StreamMappingsService.deleteStreamMapping({
artists: getTrackArtists(currentTrack),
artist: getTrackArtists(currentTrack)?.[0],
title: currentTrack.name,
source: selectedStreamProvider,
stream_id: head(currentTrack.streams).id,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/rest/Nuclear/StreamMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NuclearService } from './NuclearService';

type StreamMapping = {
id: string;
artists: string[];
artist: string;
title: string;
source: string;
stream_id: string;
Expand Down

0 comments on commit 32c865b

Please sign in to comment.