ApproveTask
Function: ApproveTask()
function ApproveTask(id, points, maxPerPeriod): Promise<Response<void>>
Defined in: src/actions/review.tsx:16
Approves a submitted task with the specified ID, points, and maximum points per period.
Parameters
id
string
The ID of the task to approve.
points
number
The points to assign to the task.
maxPerPeriod
The maximum points allowed per period, or null if not applicable.
null | number
Returns
Promise<Response<void>>
- A promise that resolves to a response object indicating success or failure.