Skip to content

Commit

Permalink
[QA-443] Fix cache case matching for handles and permalinks (#3167)
Browse files Browse the repository at this point in the history
Co-authored-by: Dylan Jeffers <[email protected]>
  • Loading branch information
amendelsohn and dylanjeffers committed Apr 5, 2023
1 parent b24fe62 commit bd573a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const actionsMap = {
const { playlist_id, permalink } = entry.metadata

if (permalink) {
newPermalinks[permalink] = playlist_id
newPermalinks[permalink.toLowerCase()] = playlist_id
}
}

Expand All @@ -44,7 +44,10 @@ const actionsMap = {

return {
...state,
permalinks: { ...state.permalinks, [permalink]: collectionId }
permalinks: {
...state.permalinks,
[permalink.toLowerCase()]: collectionId
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const actionsMap = {
for (const entry of entries) {
const { track_id, permalink } = entry.metadata

newPermalinks[permalink] = track_id
newPermalinks[permalink.toLowerCase()] = track_id
}

return {
Expand All @@ -43,7 +43,7 @@ const actionsMap = {

return {
...state,
permalinks: { ...state.permalinks, [permalink]: trackId }
permalinks: { ...state.permalinks, [permalink.toLowerCase()]: trackId }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const actionsMap = {

for (const entry of entries) {
const { user_id, handle } = entry.metadata
newHandles[handle] = user_id
newHandles[handle.toLowerCase()] = user_id
}

return {
Expand Down

0 comments on commit bd573a1

Please sign in to comment.