Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (de getEventsFromTimeStamp (origin timestamp)
- (let (dbOrigin (db 'name '+EventOrigin origin)
- events (solve '(@CreatedAt (cons timestamp T)
- @Origin origin
- (select (@Event)
- ((createdAt +Event @CreatedAt)
- (origin +Event @Origin))
- (range @CreatedAt @Event createdAt)))))
- (if (not (== dbOrigin NIL))
- events
- "Wrong event origin")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement