mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +00:00
refactor: remove deprecated event data (#674)
This commit is contained in:
@@ -82,10 +82,9 @@ export const parseRundown = (data): OntimeRundown => {
|
|||||||
export const parseProject = (data): ProjectData => {
|
export const parseProject = (data): ProjectData => {
|
||||||
let newProjectData: Partial<ProjectData> = {};
|
let newProjectData: Partial<ProjectData> = {};
|
||||||
// we are adding this here to aid transition, should be removed once enough time has past that users have fully migrated
|
// we are adding this here to aid transition, should be removed once enough time has past that users have fully migrated
|
||||||
// TODO: Remove eventually
|
if ('project' in data) {
|
||||||
if ('project' in data || 'eventData' in data) {
|
|
||||||
console.log('Found project data, importing...');
|
console.log('Found project data, importing...');
|
||||||
const project = data.project ?? data.eventData;
|
const project = data.project;
|
||||||
|
|
||||||
// filter known properties and write to db
|
// filter known properties and write to db
|
||||||
newProjectData = {
|
newProjectData = {
|
||||||
|
|||||||
Reference in New Issue
Block a user