mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Remove unused serialization functions
This commit is contained in:
@@ -91,17 +91,6 @@ export class AddUsedTimeActionVersion2 extends AppLogicAction {
|
||||
this.trustedTimestamp = trustedTimestamp
|
||||
}
|
||||
|
||||
serialize = (): SerializedAddUsedTimeActionVersion2 => ({
|
||||
type: 'ADD_USED_TIME_V2',
|
||||
d: this.dayOfEpoch,
|
||||
i: this.items.map((item) => ({
|
||||
categoryId: item.categoryId,
|
||||
tta: item.timeToAdd,
|
||||
etts: item.extraTimeToSubtract
|
||||
})),
|
||||
t: this.trustedTimestamp
|
||||
})
|
||||
|
||||
static parse = ({ d, i, t }: SerializedAddUsedTimeActionVersion2) => (
|
||||
new AddUsedTimeActionVersion2({
|
||||
dayOfEpoch: d,
|
||||
|
||||
Reference in New Issue
Block a user