Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object Post {
- implicit val record: Record[Id[Post], Post] = new Record[Id[Post], Post] {
- val topic = "posts"
- def key(post: Post): Id[Post] = post.id
- def timestamp(post: Post): Long = post.updatedOn.toEpochMilli
- }
- }
Add Comment
Please, Sign In to add comment