Skip to content

Commit b4262a2

Browse files
committed
fixup! remove endedAt for consumable-ended
1 parent da907ad commit b4262a2

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/Login.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ const messageSchema = z.preprocess(
109109
z.object({
110110
type: z.literal('consumable-ended'),
111111
consumable: z.string(),
112-
name: z.string(),
113-
endedAt: z.number().int()
112+
name: z.string()
114113
}),
115114
/** Information about all currently active consumables, received when the connection opens. */
116115
z.object({

src/mock/util/messages.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ export const messages = {
2828
})
2929
},
3030

31-
consumableEnded (consumable: string, ended: string) {
31+
consumableEnded (consumable: string) {
3232
return JSON.stringify({
3333
type: 'consumable-ended',
34-
consumable,
35-
endedAt: Date.parse(ended)
34+
consumable
3635
})
3736
},
3837

0 commit comments

Comments
 (0)