Skip to content

Commit 780c73b

Browse files
committed
bandit config uses updatedAt
1 parent 411b818 commit 780c73b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/http-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface IUniversalFlagConfigResponse {
4343
}
4444

4545
export interface IBanditParametersResponse {
46-
createdAt: string; // ISO formatted string
46+
updatedAt: string; // ISO formatted string
4747
bandits: Record<string, BanditParameters>;
4848
}
4949

test/testHelpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ export function getTestAssignments(
113113
return assignments;
114114
}
115115

116-
const configCreatedAt = readMockUFCResponse(MOCK_UFC_RESPONSE_FILE).createdAt;
116+
const configCreatedAt = (
117+
readMockUFCResponse(MOCK_UFC_RESPONSE_FILE) as IUniversalFlagConfigResponse
118+
).createdAt;
117119
const testHelperInstantiationDate = new Date();
118120

119121
export function validateTestAssignments(

0 commit comments

Comments
 (0)