londonStageDatabase = x.map(
({
EventId,
EventDate,
TheatreCode,
Season,
Volume,
Hathi,
CommentC,
TheatreId,
Phase2,
Phase1,
CommentCClean,
BookPDF,
Performances
}) =>
Object.assign(
{},
{
eventID: +EventId,
EventDate: +EventDate,
TheatreCode: TheatreCode,
Season: Season,
Volume: +Volume,
Hathi: Hathi,
CommentC: CommentC,
TheatreId: +TheatreId,
Phase2: Phase2,
Phase1: Phase1,
CommentCClean: CommentCClean,
BookPDF: BookPDF,
Performances: Performances.map(
({
PerformanceId,
EventId,
PerformanceOrder,
PType,
PerformanceTitle,
CommentP,
CastAsListed,
DetailedComment,
WorkId,
PerfTitleClean,
CommentPClean,
cast,
author
}) =>
Object.assign(
{},
{
performanceID: +PerformanceId,
eventID: +EventId,
performanceOrder: +PerformanceOrder,
pType: PType,
performanceTitle: PerformanceTitle,
commentP: CommentP,
castAsListed: CastAsListed,
detailedComment: DetailedComment,
workID: +WorkId,
perfTitleClean: PerfTitleClean,
commentPClean: CommentPClean,
cast,
author
}
)
)
}
)
)