Skip to content

Commit 3b98da9

Browse files
authored
fix: crashesApiRow id, stackKeyId should be type number (#63)
Fixes #62
1 parent 7b3f34f commit 3b98da9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/crashes/crashes-api-row/crashes-api-row.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
interface CrashData {
22
id: string;
33
stackKey: string;
4+
stackId: string;
45
stackKeyId: string;
56
appName: string;
67
appVersion: string;
@@ -31,9 +32,10 @@ export interface CrashesApiResponseRow extends CrashData {
3132
}
3233

3334
export class CrashesApiRow {
34-
public id: string;
35+
public id: number;
3536
public stackKey: string;
36-
public stackKeyId: string;
37+
public stackId: number;
38+
public stackKeyId: number;
3739
public appName: string;
3840
public appVersion: string;
3941
public appDescription: string;
@@ -54,9 +56,10 @@ export class CrashesApiRow {
5456
public exceptionMessage: string;
5557

5658
constructor(rawApiRow: CrashesApiResponseRow) {
57-
this.id = rawApiRow.id;
59+
this.id = Number(rawApiRow.id);
5860
this.stackKey = rawApiRow.stackKey;
59-
this.stackKeyId = rawApiRow.stackKeyId;
61+
this.stackKeyId = Number(rawApiRow.stackKeyId);
62+
this.stackId = Number(rawApiRow.stackId);
6063
this.appName = rawApiRow.appName;
6164
this.appVersion = rawApiRow.appVersion;
6265
this.appDescription = rawApiRow.appDescription;

0 commit comments

Comments
 (0)