mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 10:07:35 +00:00
More fixes for graphql upload flow
This commit is contained in:
parent
6475169c5c
commit
1bb0dfaa3e
1 changed files with 4 additions and 6 deletions
|
|
@ -112,13 +112,11 @@ export async function checkMd5sUploadStatus(md5s) {
|
|||
}
|
||||
`;
|
||||
const data = await fetchGraphql(query, { md5s });
|
||||
return data.upload_statuses_by_md5.map((status) => {
|
||||
return {
|
||||
id: status.id,
|
||||
md5: status.upload_md5,
|
||||
status: status.status,
|
||||
};
|
||||
const statusObj = {};
|
||||
data.upload_statuses_by_md5.forEach((status) => {
|
||||
statusObj[status.upload_md5] = status.status;
|
||||
});
|
||||
return statusObj;
|
||||
} else {
|
||||
const response = await fetch(`${API_URL}/skins/status`, {
|
||||
method: "POST",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue