mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 05:07:10 +00:00
final history polishing
This commit is contained in:
@@ -24,7 +24,7 @@ export const submitTaskSolution = async (
|
||||
|
||||
// туповатый костыль но для мвп сойдет
|
||||
if (typeof solution === 'string') {
|
||||
const textFile = new File([solution], 'solution.txt', { type: 'text/plain' });
|
||||
const textFile = new File([solution], 'solution_example.txt', { type: 'text/plain' });
|
||||
formData.append('content', textFile);
|
||||
} else {
|
||||
formData.append('content', solution);
|
||||
|
||||
Reference in New Issue
Block a user