api cleaned up from person/teacher model at all

This commit is contained in:
tmshv committed 2020-02-25 04:35:05 +03:00
1 parent ebd6290ccf
commit fdac9d9ff8
10 files changed
+1 -222

No files matched your search

-13
View File
@@ -1,13 +0,0 @@
import ImageArtifactType from '../core/ImageArtifactType'
import { encodeImage } from './image'
const profilePicture = profile => profile.picture.getPicture(ImageArtifactType.BIG)
export function encodePerson(person) {
return {
...person,
shortName: person.shortName(),
name: person.splitName(),
picture: profilePicture(person),
preview: encodeImage(person.picture),
}
}