Skip to content

Commit

Permalink
Fix request callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Aug 12, 2023
1 parent 07de8e1 commit 2b3c2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProcessReporter/Utils/Reporter/Reporter+API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ extension Reporter {
}
}

try? Request.shared.post(url: url, data: postData) { _ in
try? Request.shared.post(url: url, data: postData, callback: { _ in
DispatchQueue.main.async {
JotaiStore.shared.set(Atoms.lastReportAtAtom, value: now)
JotaiStore.shared.set(Atoms.lastReportDataAtom, value: postData)
}
}
})
}
}

0 comments on commit 2b3c2b8

Please sign in to comment.