Skip to content

Commit 7202eec

Browse files
Fraud Squad Automated review tags
1 parent ddd2610 commit 7202eec

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/lib/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export type Log = {
1616
deltaTime: number //in minutes
1717
message: message[]
1818
submmitedToHQ: boolean
19+
fraudApproved: boolean
20+
fraudApprovedBy?: string
21+
fraudJustification?: string
22+
fraudTimestamp?: string
1923
}
2024

2125
export type message = {

src/routes/dashboard/projects/ship/+server.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ function updateLog(log: Log[], deltaTime: number, changelog: string): Log[] {
8484
},
8585
],
8686
submmitedToHQ: false,
87+
fraudApproved: false,
88+
fraudApprovedBy: undefined,
89+
fraudJustification: undefined,
90+
fraudTimestamp: undefined,
8791
},
8892
]
8993
}
@@ -105,6 +109,10 @@ function updateLog(log: Log[], deltaTime: number, changelog: string): Log[] {
105109
},
106110
],
107111
submmitedToHQ: false,
112+
fraudApproved: false,
113+
fraudApprovedBy: undefined,
114+
fraudJustification: undefined,
115+
fraudTimestamp: undefined,
108116
},
109117
]
110118
} else if (lastLog.status === 0 || lastLog.status === 2) {
@@ -127,6 +135,10 @@ function updateLog(log: Log[], deltaTime: number, changelog: string): Log[] {
127135
},
128136
],
129137
submmitedToHQ: false,
138+
fraudApproved: false,
139+
fraudApprovedBy: undefined,
140+
fraudJustification: undefined,
141+
fraudTimestamp: undefined,
130142
},
131143
]
132144
} else {

0 commit comments

Comments
 (0)