Skip to content

Commit

Permalink
Rename outputId to trackerId
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoschkin committed Sep 4, 2024
1 parent caa211c commit 17bf342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/abstract/voyagetracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ApiResult } from "../logic/api";
export interface TrackerPostResult {
status: number;
inputId?: any;
outputId?: any;
trackerId?: any;
}

export abstract class VoyageTrackerBase {
Expand Down Expand Up @@ -53,7 +53,7 @@ export abstract class VoyageTrackerBase {
Status: 201,
Body: {
dbid: dbid,
trackerId: res!.outputId,
trackerId: res!.trackerId,
inputId: res!.inputId,
timeStamp: timeStamp.toISOString(),
},
Expand Down
2 changes: 1 addition & 1 deletion app/logic/voyagetracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class VoyageTracker extends VoyageTrackerBase {
}

// sql?.close();
return !!result?.id ? { status: 201, inputId: voyage.tracker_id, outputId: result.id } : { status: 400 };
return !!result?.id ? { status: 201, inputId: voyage.tracker_id, trackerId: result.id } : { status: 400 };
}

return { status: 500 };
Expand Down

0 comments on commit 17bf342

Please sign in to comment.