Skip to content

Commit

Permalink
fix current update id comparison (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
wschurman authored Jul 18, 2024
1 parent 42db10c commit b8b880a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expo-updates-server/pages/api/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function putUpdateInResponseAsync(

// NoUpdateAvailable directive only supported on protocol version 1
// for protocol version 0, serve most recent update as normal
if (currentUpdateId === id && protocolVersion === 1) {
if (currentUpdateId === convertSHA256HashToUUID(id) && protocolVersion === 1) {
throw new NoUpdateAvailableError();
}

Expand Down

0 comments on commit b8b880a

Please sign in to comment.