Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d7db5f1

Browse files
committed
Change id and extension details of songs provided by extension
Signed-off-by: Sahil Gupte <[email protected]>
1 parent c9beac8 commit d7db5f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/extensions/sandbox/extensionHandler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,11 @@ export class ExtensionHandler {
216216
EventType === 'requestedRecommendations'
217217
) {
218218
const songs = (resp as CombinedSongsType).songs
219-
songs.map((val) => ({
219+
;(resp as CombinedSongsType).songs = songs.map((val) => ({
220220
...val,
221221
_id: `${ext.packageName}:${val._id}`,
222222
providerExtension: ext.packageName
223223
}))
224-
;(resp as CombinedSongsType).songs = songs
225224
}
226225

227226
if (EventType === 'requestedSongFromURL') {

0 commit comments

Comments
 (0)