ApproveTask

Function: ApproveTask()

function ApproveTask(id, points, maxPerPeriod): Promise<Response<void>>

Defined in: 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

number | null

The maximum points allowed per period, or null if not applicable.

Returns

Promise<Response<void>>
  • A promise that resolves to a response object indicating success or failure.

On this page