Dongsu Jang
Dongsu Jang
I have a same problem. See also https://stackoverflow.com/questions/71489256/spring-cloud-config-server-github-sha-1-error For right now, I have a dirty workaround: use https `uri`, `username` and `password`(github personal secret token).
two years have passed. any progress?
press BOOT while pressing RST.
I agree with @envindor. There're 3 types of tag: 1. a tag and values in a single line(ex. `@api public`) 2. a tag only(ex. `@private`) 3. a tag and values...
did you mean `spread` options doesn't effect? see https://github.com/iolo/mongoose-q#to-apply-q-with-spread to access multiple result, you need `spread` option. this is a dirty workaround to overcome the restriction(intention) of Q. see https://github.com/kriskowal/q/issues/92
mongoose's [model.save()](http://mongoosejs.com/docs/api.html#model_Model-save) returns multiple results: one for savedDoc(object) and another for affectedRows(number). mongoose's `model.save()` will never return multiple savedDocs(array) because it's an instance method. You should use [Model.create](http://mongoosejs.com/docs/api.html#model_Model.create) or similar...
this is my node repl session: ``` > var mongoose = require('./index')(require('mongoose'),{spread:true}); // mongoose.connect('mongodb://localhost/test'); // var Tank = mongoose.model('Tank', new mongoose.Schema({ name: 'string', size: 'string'})); undefined > var small =...
tested on both [email protected] (latest unstable) and [email protected] (last stable). the key difference is: ``` javascript var mongoose = require('./index')(require('mongoose'),{spread:true}); ```
I know that is somewhat strange. but I couldn't find better way to overcome Q's restriction. I leaned more internals on Q and mongoose, thanks to you :)
you should use `.spread()` instead of `.then()` ``` javascript return model.saveQ() .spread(function(result1, result2) { // NOTE: spread() not then() console.log(result1); // should be savedDoc console.log(result2); // should be affectedRows });...