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

Method expiredProducts

app/models/User.js:883–886  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

881 }
882
883 expiredProducts (type) {
884 const now = new Date()
885 return _.filter((this.get('products') || []), p => (p.product === type) && (new Date(p.endDate) < now))
886 }
887
888 activeSalesCallProducts () {
889 return this.activeProducts(this.constructor.SALES_CALL_ACCESS_LEVEL)

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
filterMethod · 0.80

Tested by

no test coverage detected