mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-05 13:21:10 -05:00
0768b533e2
Caching older (at least 16 days) Stripe invoices in analytics collection, which will be updated once a day via the analytics server cron job.
9 lines
291 B
CoffeeScript
9 lines
291 B
CoffeeScript
mongoose = require 'mongoose'
|
|
|
|
AnalyticsStripeInvoiceSchema = new mongoose.Schema({
|
|
_id: String
|
|
date: Number
|
|
properties: mongoose.Schema.Types.Mixed
|
|
}, {strict: false})
|
|
|
|
module.exports = AnalyticsStripeInvoice = mongoose.model('analytics.stripe.invoice', AnalyticsStripeInvoiceSchema)
|