You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/models/Airline.ts
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,6 @@ export class Airline {
199
199
if(nearestAirport!==null){
200
200
PlaneAlert.log.debug(`Plane ${this.name} (${element.icao}) is near ${nearestAirport.airport!.name!} (${nearestAirport.airport!.ident!}) and has lost signal`);
Copy file name to clipboardExpand all lines: src/utils/EventUtils.ts
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ export class EventUtils {
86
86
url: account.url,
87
87
accessToken: account.accessToken,
88
88
});
89
-
letmedia: Attachment;
89
+
letmedia: Attachment|undefined=undefined;
90
90
if(hasTakeoffScreenshot){
91
91
try{
92
92
media=awaitmasto.mediaAttachments.create({
@@ -101,8 +101,7 @@ export class EventUtils {
101
101
awaitmasto.statuses.create({
102
102
status: `${notificationName}${aircraft.callsign ? " flight #"+aircraft.callsign : ""} (#${aircraft.registration}) took off from ${data.nearestAirport.name} at ${newDate().toLocaleString()}\n${adsbExchangeLink}`,
0 commit comments