diff --git a/lib/DB.rakumod b/lib/DB.rakumod index fd70f73..0085d70 100644 --- a/lib/DB.rakumod +++ b/lib/DB.rakumod @@ -41,6 +41,6 @@ class MarkdownPost does Post is json { #| The top level posts database class PostDB is json(:pretty) { - #| The inner list of posts - has Post:D @.posts = []; + #| A mapping from post ids to posts + has Hash[Int:D, Post:D] %.posts = %(); }