Created
November 3, 2013 23:07
-
-
Save james-lukensow/7295891 to your computer and use it in GitHub Desktop.
Geddy save association Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tweetModel.save(function(err, tweet) { | |
if (err) { | |
console.log(err); | |
} | |
geddy.model.Topic.first({slug: 'xbox'}, function(err, topic) { | |
if (err) { throw err; } | |
tweetModel.addTopic(keywordTopic); | |
tweetModel.save(function(err, tweet) { | |
console.log('Tweet updated', tweet); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment