Browse Source

Fix #30 : add/update appears to work

George S. Baugh 5 years ago
parent
commit
a85dc03932
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/Trog/Data/DUMMY.pm

+ 2 - 0
lib/Trog/Data/DUMMY.pm

@@ -172,6 +172,8 @@ sub add ($self, @posts) {
             $post->{version}  = $existing_post->{version};
             $post->{version}++;
         }
+        $post->{version} //= 0;
+        #TODO set local_href and content type correctly
 
         $post = _process($post);
         push @$example_posts, $post;