refactor: Rename parameter in CompleteSubTask back to completedAt to match backend https://github.com/donetick/donetick/issues/224
This commit is contained in:
@@ -123,12 +123,12 @@ const MarkChoreComplete = (id, body, completedDate, performer) => {
|
||||
})
|
||||
}
|
||||
|
||||
const CompleteSubTask = (id, choreId, performedAt) => {
|
||||
const CompleteSubTask = (id, choreId, completedAt) => {
|
||||
var markChoreURL = `/chores/${choreId}/subtask`
|
||||
return Fetch(markChoreURL, {
|
||||
method: 'PUT',
|
||||
headers: HEADERS(),
|
||||
body: JSON.stringify({ performedAt, id, choreId }),
|
||||
body: JSON.stringify({ completedAt, id, choreId }),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user