mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +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 => {
|
||||
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
|
||||
// TODO: Remove eventually
|
||||
if ('project' in data || 'eventData' in data) {
|
||||
if ('project' in data) {
|
||||
console.log('Found project data, importing...');
|
||||
const project = data.project ?? data.eventData;
|
||||
const project = data.project;
|
||||
|
||||
// filter known properties and write to db
|
||||
newProjectData = {
|
||||
|
||||
Reference in New Issue
Block a user