Update LeaderboardService to use PUT instead of POST

This commit is contained in:
hunteraraujo
2023-09-27 00:12:45 -07:00
parent 5f4454737d
commit c94835432e

View File

@@ -12,7 +12,7 @@ class LeaderboardService {
/// [benchmarkRun] is a BenchmarkRun object representing the data of a completed benchmark.
Future<Map<String, dynamic>> submitReport(BenchmarkRun benchmarkRun) async {
try {
return await api.post(
return await api.put(
'api/reports',
benchmarkRun.toJson(),
apiType: ApiType.leaderboard,