Files
outline/server/presenters/star.ts
Tom Moor 79e2cad5b9 feat: Add reordering to starred documents (#2953)
* draft

* reordering

* JIT Index stars on first load

* test

* Remove unused code on client

* small unrefactor
2022-01-21 18:11:50 -08:00

12 lines
239 B
TypeScript

import { Star } from "@server/models";
export default function present(star: Star) {
return {
id: star.id,
documentId: star.documentId,
index: star.index,
createdAt: star.createdAt,
updatedAt: star.updatedAt,
};
}