Revision 383330663132 () - Diff

Link to this snippet: https://friendpaste.com/7cZfkn6yIGGGh5CIJAawK3
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/couchdb/couch_auth_cache.erl b/src/couchdb/couch_auth_cache.erl
index 94adac8..ff66dfb 100644
--- a/src/couchdb/couch_auth_cache.erl
+++ b/src/couchdb/couch_auth_cache.erl
@@ -293,7 +293,7 @@ refresh_entry(Db, #doc_info{high_seq = DocSeq} = DocInfo) ->
user_creds(#doc{deleted = true}) ->
nil;
user_creds(#doc{} = Doc) ->
- {Creds} = couch_query_servers:json_doc(Doc),
+ {Creds} = couch_doc:to_json_obj(Doc, []),
Creds.
@@ -360,7 +360,7 @@ get_user_props_from_db(UserName) ->
DocId = <<"org.couchdb.user:", UserName/binary>>,
try
{ok, Doc} = couch_db:open_doc(Db, DocId, [conflicts]),
- {DocProps} = couch_query_servers:json_doc(Doc),
+ {DocProps} = couch_doc:to_json_obj(Doc, []),
DocProps
catch
_:_Error ->