> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# applyScheduleComplete()

> Function exported by @botmesh/core/spi.

```ts theme={null}
function applyScheduleComplete(
   row, 
   patch, 
   now
): ScheduleRecord;
```

Defined in: [scheduler/ScheduleStore.ts:251](https://github.com/andresayac/botmesh/blob/main/packages/core/src/scheduler/ScheduleStore.ts#L251)

The record after a successful `complete` (lease cleared), shared by the JS-side backends.

## Parameters

| Parameter | Type |
| - | - |
| `row` | [`ScheduleRecord`](https://botmesh.afaya.com.co/api/core/spi/interfaces/ScheduleRecord) |
| `patch` | [`CompletePatch`](https://botmesh.afaya.com.co/api/core/spi/interfaces/CompletePatch) |
| `now` | `number` |

## Returns

[`ScheduleRecord`](https://botmesh.afaya.com.co/api/core/spi/interfaces/ScheduleRecord)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.