Ignore:
Timestamp:
03/27/14 14:44:36 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Return to using truly ISO formatted dates, including milliseconds.
  • Also set constraint on surveyrun dates when value is initially set.
  • Separate runs & results from surveys and questions.
  • Moved date & email format to schema itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/server/api/util.js

    r527 r531  
    8181
    8282    var getDocumentsOfType = exports.getDocumentsOfType = function(type) {
    83         var url = '_design/default/_view/by_type?key='+JSON.stringify(type);
    84         return couch.get(url)
     83        return couch.get('_design/default/_view/by_type',
     84                         {query:{reduce:false,include_docs:true,key:type}})
    8585        .handle({
    8686            '-1': _.identity,
    87             200: handleRowValues,
     87            200: handleRowDocs,
    8888            404: function() { return {error: "Cannot find collection of type "+type}; },
    8989            default: handleUnknownResponse
Note: See TracChangeset for help on using the changeset viewer.