We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
this.get()
1 parent a71cc3d commit a0daf24Copy full SHA for a0daf24
app/controllers/me/index.js
@@ -28,7 +28,7 @@ export default class MeIndexController extends Controller {
28
}
29
30
setAllEmailNotifications(value) {
31
- this.get('ownedCrates').forEach(c => {
+ this.ownedCrates.forEach(c => {
32
c.set('email_notifications', value);
33
});
34
@@ -41,7 +41,7 @@ export default class MeIndexController extends Controller {
41
await ajax(`/api/v1/me/email_notifications`, {
42
method: 'PUT',
43
body: JSON.stringify(
44
- this.get('ownedCrates').map(c => ({
+ this.ownedCrates.map(c => ({
45
id: parseInt(c.id, 10),
46
email_notifications: c.email_notifications,
47
})),
0 commit comments