Skip to content

Commit 54d25bd

Browse files
committed
Make sure we don't miss events in azure upload
1 parent 9639ad7 commit 54d25bd

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/IotBbq.App/IotBbq.JsApp/src/app/model/BbqItem.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ export interface IBbqItem {
1313
}
1414

1515
export class BbqItem implements IBbqItem {
16-
public id: string;
17-
public eventId: string;
18-
public name: string;
19-
public itemType: string;
20-
public currentPhase: string;
21-
public weight: number;
22-
public targetTemperature: number;
23-
public temperature: number;
24-
public cookStartTime: Date;
25-
public probeNumber: number;
26-
public lastLogUploadTime: Date;
16+
public id: string = null;
17+
public eventId: string = null;
18+
public name: string = null;
19+
public itemType: string = null;
20+
public currentPhase: string = null;
21+
public weight = 0;
22+
public targetTemperature = 0;
23+
public temperature = 0;
24+
public cookStartTime: Date = null;
25+
public probeNumber: number = null;
26+
public lastLogUploadTime: Date = null;
2727

2828
public load(other: IBbqItem) {
2929
this.id = other.id;

src/IotBbq.App/IotBbq.JsApp/src/app/services/AzureUploadService.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class AzureUploadService {
7878
},
7979
event.lastSmokerUploadTime ? event.lastSmokerUploadTime : Utility.MinDate,
8080
Utility.MaxDate,
81-
true,
81+
false,
8282
false,
8383
this.maxLogsPerUpload);
8484

@@ -125,7 +125,7 @@ export class AzureUploadService {
125125
item.id,
126126
item.lastLogUploadTime ? item.lastLogUploadTime : Utility.MinDate,
127127
Utility.MaxDate,
128-
true,
128+
false,
129129
false,
130130
this.maxLogsPerUpload);
131131

0 commit comments

Comments
 (0)