couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [2/3] fabric commit: updated refs/heads/master to c38c692
Date Mon, 27 Jun 2016 23:21:42 GMT
fabric:update_docs supports json_obj()


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/3c7345a3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/3c7345a3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/3c7345a3

Branch: refs/heads/master
Commit: 3c7345a3b2157a753cf84ce7e0c40d3931e24d12
Parents: aa17ddf
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Jun 22 10:34:52 2016 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Mon Jun 27 09:09:09 2016 -0700

----------------------------------------------------------------------
 src/fabric.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/3c7345a3/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index 0c7cfa2..aa96513 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -222,7 +222,7 @@ get_missing_revs(DbName, IdsRevs, Options) when is_list(IdsRevs) ->
 
 %% @doc update a single doc
 %% @equiv update_docs(DbName,[Doc],Options)
--spec update_doc(dbname(), #doc{}, [option()]) ->
+-spec update_doc(dbname(), #doc{} | json_obj(), [option()]) ->
     {ok, any()} | any().
 update_doc(DbName, Doc, Options) ->
     case update_docs(DbName, [Doc], opts(Options)) of
@@ -241,7 +241,7 @@ update_doc(DbName, Doc, Options) ->
     end.
 
 %% @doc update a list of docs
--spec update_docs(dbname(), [#doc{}], [option()]) ->
+-spec update_docs(dbname(), [#doc{} | json_obj()], [option()]) ->
     {ok, any()} | any().
 update_docs(DbName, Docs, Options) ->
     try


Mime
View raw message