maybeUpdateSchedule

Function

Checks if the content schedule should be updated and updates it if necessary

Checks if the content schedule should be updated and updates it if necessary

Parameters

Parameter Type Default Notes
content Required IHubEditableContent

The content to check and update the schedule for (should include any new schedule information)

requestOptions Required IUserRequestOptions

The request options needed to get the HubApiUrl

Available requestOptions

Property Type Notes

Returns

Property Type Notes
message string
error Optional string
schedule Optional IHubSchedule
statusCode Optional number

Function defined in common/src/content/manageSchedule.ts:123