16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
// @flow
|
|
import _ from 'lodash';
|
|
import { Revision } from '../models';
|
|
|
|
function present(ctx: Object, revision: Revision) {
|
|
return {
|
|
id: revision.id,
|
|
title: revision.title,
|
|
text: revision.text,
|
|
createdAt: revision.createdAt,
|
|
updatedAt: revision.updatedAt,
|
|
};
|
|
}
|
|
|
|
export default present;
|