Ver código fonte

Fix #30 : add/update appears to work

George S. Baugh 5 anos atrás
pai
commit
a85dc03932
1 arquivos alterados com 2 adições e 0 exclusões
  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;