punishment.js 198 B

1234567
  1. export default (punishment, punishmentId) => ({
  2. type: punishment.type,
  3. value: punishment.value,
  4. reason: punishment.reason,
  5. expiresAt: new Date(punishment.expiresAt).getTime(),
  6. punishmentId
  7. });