Skip to content

Commit

Permalink
fix: crashesApiRow id, stackKeyId should be type number (#63)
Browse files Browse the repository at this point in the history
Fixes #62
  • Loading branch information
bobbyg603 authored Nov 22, 2021
1 parent 7b3f34f commit 3b98da9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/crashes/crashes-api-row/crashes-api-row.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
interface CrashData {
id: string;
stackKey: string;
stackId: string;
stackKeyId: string;
appName: string;
appVersion: string;
Expand Down Expand Up @@ -31,9 +32,10 @@ export interface CrashesApiResponseRow extends CrashData {
}

export class CrashesApiRow {
public id: string;
public id: number;
public stackKey: string;
public stackKeyId: string;
public stackId: number;
public stackKeyId: number;
public appName: string;
public appVersion: string;
public appDescription: string;
Expand All @@ -54,9 +56,10 @@ export class CrashesApiRow {
public exceptionMessage: string;

constructor(rawApiRow: CrashesApiResponseRow) {
this.id = rawApiRow.id;
this.id = Number(rawApiRow.id);
this.stackKey = rawApiRow.stackKey;
this.stackKeyId = rawApiRow.stackKeyId;
this.stackKeyId = Number(rawApiRow.stackKeyId);
this.stackId = Number(rawApiRow.stackId);
this.appName = rawApiRow.appName;
this.appVersion = rawApiRow.appVersion;
this.appDescription = rawApiRow.appDescription;
Expand Down

0 comments on commit 3b98da9

Please sign in to comment.