This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/presenters/fileOperation.js
Saumya Pandey 00ba65f3ef
fix: Refactor collection exports to not send email attachment (#2460)
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-08-29 02:57:07 +05:30

16 lines
402 B
JavaScript

// @flow
import { FileOperation } from "../models";
import { presentCollection, presentUser } from ".";
export default function present(data: FileOperation) {
return {
id: data.id,
type: data.type,
state: data.state,
collection: data.collection ? presentCollection(data.collection) : null,
size: data.size,
user: presentUser(data.user),
createdAt: data.createdAt,
};
}