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

Method setSeenPromotion

app/models/User.js:867–871  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

865 }
866
867 setSeenPromotion (key) {
868 const seenPromotions = this.get('seenPromotions') || {}
869 Object.assign(seenPromotions, { [key]: new Date() })
870 this.set('seenPromotions', seenPromotions)
871 }
872
873 activeProducts (type) {
874 const now = new Date()

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected