Skip to content

Commit

Permalink
change post logic for harmony
Browse files Browse the repository at this point in the history
  • Loading branch information
bozaigao committed Jan 11, 2025
1 parent db0a4fb commit 4726f68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ export class Pushy {
// @ts-ignore
delete fetchBody.buildTime;
}
const body = JSON.stringify(fetchBody);
let body = JSON.stringify(fetchBody);
if (Platform.OS === 'harmony') {

Check failure on line 209 in src/client.ts

View workflow job for this annotation

GitHub Actions / lint (20.x)

This comparison appears to be unintentional because the types '"ios" | "android" | "windows" | "macos"' and '"harmony"' have no overlap.
body = fetchBody;

Check failure on line 210 in src/client.ts

View workflow job for this annotation

GitHub Actions / lint (20.x)

Type '{ packageVersion: string; hash: string; buildTime: string; cInfo: { pushy: any; rn: string; os: string; uuid: any; }; }' is not assignable to type 'string'.
}
const fetchPayload = {
method: 'POST',
headers: {
Expand Down

0 comments on commit 4726f68

Please sign in to comment.