Skip to content

Commit 6bad2ce

Browse files
author
Samantha Mathan
committed
Changed GptData type by mistake. Fixed it
1 parent eca9631 commit 6bad2ce

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
@@ -54,7 +54,7 @@ export type GPTData = {
5454
year: number;
5555
author: string[];
5656
part_no: string;
57-
type: string[];
57+
type: string;
5858
manufacturer: string;
5959
testing_location: TestLocation;
6060
testing_type: Testing;

0 commit comments

Comments
 (0)