mirror of
https://github.com/outline/outline.git
synced 2026-06-30 19:47:28 +03:00
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;
|