punishment.js 221 B

12345
  1. 'use strict';
  2. module.exports = (punishment, punishmentId) => {
  3. return { type: punishment.type, value: punishment.value, reason: punishment.reason, expiresAt: new Date(punishment.expiresAt).getTime(), punishmentId };
  4. };