MCPcopy Create free account
hub / github.com/codecombat/codecombat / addNewUserCommonProperties

Method addNewUserCommonProperties

app/models/User.js:409–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407 }
408
409 addNewUserCommonProperties () {
410 const emails = _.assign({}, this.get('emails'))
411 if (emails.generalNews == null) { emails.generalNews = {} }
412 if (this.inEU()) {
413 emails.generalNews.enabled = false
414 this.set('unsubscribedFromMarketingEmails', true)
415 } else {
416 emails.generalNews.enabled = true
417 }
418 this.set('emails', emails)
419 this.set('features', {
420 ...(this.get('features') || {}),
421 isNewDashboardActive: true,
422 })
423 }
424
425 level () {
426 let totalPoint = this.get('points')

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
inEUMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected