Skip to content

Commit 9df8d00

Browse files
author
Samantha Mathan
committed
Changed GptData type by mistake. Fixed it
1 parent b7864b8 commit 9df8d00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/src/gpt-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class GPTController {
7171
year: 0,
7272
author: [],
7373
part_no: "",
74-
type: [],
74+
type: "",
7575
manufacturer: "",
7676
testing_location: "Terrestrial",
7777
testing_type: "TID",
@@ -87,7 +87,7 @@ export class GPTController {
8787
year: parseInt(preres[1]),
8888
author: preres[2].split(","),
8989
part_no: preres[3],
90-
type: preres[4].split("¶"),
90+
type: preres[4],
9191
manufacturer: preres[5],
9292
testing_location: <TestLocation>preres[6],
9393
testing_type: <Testing>preres[7], // TODO: this gives a list ("TID, TID, DD") sometimes so the cast may fail

server/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export type GPTData = {
5353
year: number;
5454
author: string[];
5555
part_no: string;
56-
type: string[];
56+
type: string;
5757
manufacturer: string;
5858
testing_location: TestLocation;
5959
testing_type: Testing;

0 commit comments

Comments
 (0)