mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -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)
|