api cleaned up from person/teacher model at all
This commit is contained in:
1 parent
ebd6290ccf
commit
fdac9d9ff8
10 files changed
+1
-222
No files matched your search
@@ -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),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user