@@ -9,10 +9,10 @@ import {
99/** mutates the events json data to include any event updates */
1010export const reconcileEvents = (
1111 event : WebsiteAirtablePair ,
12- websiteEvents : WebsiteEvent [ ]
12+ websiteEvents : WebsiteEvent [ ] ,
1313) : void => {
1414 const existingEventIndex = websiteEvents . findIndex (
15- ( webEvent ) => webEvent . id == event . website . id
15+ ( webEvent ) => webEvent . id == event . website . id ,
1616 ) ;
1717 if ( existingEventIndex > 0 ) {
1818 // the event exists, need to replace it with the updated one,
@@ -24,14 +24,14 @@ export const reconcileEvents = (
2424} ;
2525
2626export const makeWebsiteEvent = (
27- airtableEvent : Record < FieldSet >
27+ airtableEvent : Record < FieldSet > ,
2828) : WebsiteEvent => {
2929 const name = ( airtableEvent . get ( "Name" ) as string ) || "" ;
3030 const date = ( airtableEvent . get ( "Date" ) as string ) || "" ;
3131 const description = ( airtableEvent . get ( "Description" ) as string ) || "" ;
3232 const id = makeEventId ( name ) ;
3333 const link = ( airtableEvent . get ( "Link" ) as string ) || "" ;
34- console . log ( "makeWebsiteEvent" , { id, link} ) ;
34+ console . log ( "makeWebsiteEvent" , { id, link } ) ;
3535 const event : WebsiteEvent = {
3636 id : id ,
3737 link,
@@ -48,7 +48,7 @@ export const makeWebsiteEvent = (
4848 * and the value is an object with the corresponding airtable and website events */
4949export const mapAirtableEventsToWebsiteEvents = (
5050 airtableEvents : Record < FieldSet > [ ] ,
51- websiteEvents : WebsiteEvent [ ]
51+ websiteEvents : WebsiteEvent [ ] ,
5252) : WebsiteAirtableMap => {
5353 const result : WebsiteAirtableMap = { } ;
5454 for ( const event of airtableEvents ) {
0 commit comments