Closed ramsaylanier closed 10 years ago
You log this.params.id
in the console, does it show the correct value?
Yes - I got this to work by not using the id, but rather the title of the comic - which is also unique. I'm guessing it is an issue because the collection has both an _id field and an id field. The _id field is the id given to it by mongo, the id field is that id of the comic book as assigned to it by Marvel's API.
Anyway, problem solved I guess.
I have the following route:
and the following publication on the server:
This is not working as expected - the Comic is not getting publish. HOWEVER, if I remove 'this.params.id' from the waitOn function and replace it with a hardcoded id, then it works.
Why would that be?