Skip to content

Commit 0373765

Browse files
Merge pull request #1 from Haroenv/fix/model-object
fix(model): subscription is an object
2 parents f19ec71 + c3615cd commit 0373765

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_app/models/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module.exports = {
1616
}
1717
*/
1818
},
19-
subscriptions: [
19+
subscriptions: {
2020
// asynchronous read-only operations that don't modify state directly.
2121
// Can call actions. Signature of (send, done).
2222
/*
2323
(send, done) => {
2424
// do stuff
2525
}
2626
*/
27-
]
27+
}
2828
}

_generators/model.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ const <%= name %> = {
1717
}
1818
*/
1919
},
20-
subscriptions: [
20+
subscriptions: {
2121
// asynchronous read-only operations that don't modify state directly.
2222
// Can call actions. Signature of (send, done).
2323
/*
2424
(send, done) => {
2525
// do stuff
2626
}
2727
*/
28-
]
28+
}
2929
}
3030

3131
module.exports = <%= name %>

0 commit comments

Comments
 (0)