mirror of
/repos/Prototyper.git
synced 2026-02-27 16:12:00 +01:00
minor tekst corrections
This commit is contained in:
@@ -154,6 +154,7 @@ module.exports = function (config, db, shareModel) {
|
||||
* options:
|
||||
* collection (mandatory)
|
||||
* query (mandatory)
|
||||
* operation (optional) : version info
|
||||
* update (optional) : extends existing content
|
||||
*/
|
||||
function setMongoContent(data, options, callback) {
|
||||
@@ -163,7 +164,7 @@ module.exports = function (config, db, shareModel) {
|
||||
config.error && config.error('ERR2 setMongoContent', err);
|
||||
return callback && callback(err);
|
||||
}
|
||||
if (options.operation) {
|
||||
if (options.operation && options.operation.v) {
|
||||
data.version = options.operation.v;
|
||||
}
|
||||
var dumpData = saveData;
|
||||
|
||||
@@ -9,7 +9,7 @@ module.exports = function (app, handlers, markers, config) {
|
||||
route = config.api.data + '/:collection/:guid/:attribute.:ext(css|less|js|html)';
|
||||
app.get(route,
|
||||
function getAttributeByGUID(req, res, next) {
|
||||
config.debug && config.debug(config.api.data + '/:collection/:guid/:attribute.:ext(less|js|html)');
|
||||
config.debug && config.debug(config.api.data + '/:collection/:guid/:attribute.:ext(css|less|js|html)');
|
||||
var options = {
|
||||
collection: req.params.collection,
|
||||
attribute: req.params.attribute,
|
||||
@@ -40,7 +40,7 @@ module.exports = function (app, handlers, markers, config) {
|
||||
route = config.api.content + '/:collection/:name/:attribute.:ext(css|less|js|html)';
|
||||
app.get(route,
|
||||
function getAttributeByName(req, res, next) {
|
||||
config.debug && config.debug(config.api.content + '/:collection/:name/:attribute.:ext(less|js|html)');
|
||||
config.debug && config.debug(config.api.content + '/:collection/:name/:attribute.:ext(css|less|js|html)');
|
||||
var options = {
|
||||
collection: req.params.collection,
|
||||
attribute: req.params.attribute,
|
||||
|
||||
Reference in New Issue
Block a user