mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 22:35:45 +00:00
refactor(FE-174,175): update approve method to allow custom notes in RecordingForm
This commit is contained in:
@@ -35,7 +35,7 @@ export class RecordingService extends BaseApiService<
|
||||
|
||||
async approve(
|
||||
idOrIds: number | number[],
|
||||
notes: string = 'Approved via Form'
|
||||
notes?: string
|
||||
): Promise<BaseApiResponse<Recording[]> | undefined> {
|
||||
const approvable_ids = Array.isArray(idOrIds) ? idOrIds : [idOrIds];
|
||||
return await this.customRequest<BaseApiResponse<Recording[]>>('approvals', {
|
||||
|
||||
Reference in New Issue
Block a user