Skip to content

Commit 5588b89

Browse files
committed
[server] step 3, parse model
1 parent 0aee775 commit 5588b89

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/models/tweet.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ export default {
5555
* properties to absorb breaking API changes.
5656
*/
5757

58-
// parse: function(response, options) {
59-
// return response;
60-
// },
58+
parse: function(response, options) {
59+
response.userId = response.user;
60+
return response;
61+
}
6162

6263
/**
6364
* Override the sync method if you need to modify data before sending

0 commit comments

Comments
 (0)