File size: 355 Bytes
3206347 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
const permissionSerializer = (permission) => {
return {
id: permission.id,
roleId: permission.roleId,
action: permission.action,
subject: permission.subject,
conditions: permission.conditions,
createdAt: permission.createdAt.getTime(),
updatedAt: permission.updatedAt.getTime(),
};
};
export default permissionSerializer;
|