How to use the timeline-state-resolver-types.TimelineContentTypeHttp.POST function in timeline-state-resolver-types

To help you get started, we’ve selected a few timeline-state-resolver-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nrkno / tv-automation-server-core / meteor / server / api / playout.ts View on Github external
_.each(timelineObjs, obj => {
		// ignore normal objects
		if (obj.content.type !== TimelineContentTypeHttp.POST) return
		if (!obj.isBackground) return

		const obj2 = obj as TimelineObjHTTPRequest & TimelineObjGeneric
		if (obj2.content.params && obj2.content.params.template && (obj2.content.params.template).event === 'take') {
			(obj2.content.params.template).event = 'cue'
		} else {
			// something we don't understand, so dont lookahead on it
			toRemoveIds.push(obj._id)
		}
	})