mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
bdc5360bc0
Use the default Mongoose connection pool for all models GitOrigin-RevId: d227b7eb36f130085c9eb1480dc07bd50ba57768
24 lines
544 B
JavaScript
24 lines
544 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
|
|
const { Schema } = mongoose
|
|
|
|
const ProjectHistoryFailureSchema = new Schema(
|
|
{
|
|
project_id: Schema.Types.ObjectId,
|
|
ts: Date,
|
|
queueSize: Number,
|
|
error: String,
|
|
stack: String,
|
|
attempts: Number,
|
|
history: Schema.Types.Mixed,
|
|
resyncStartedAt: Date,
|
|
resyncAttempts: Number,
|
|
requestCount: Number
|
|
},
|
|
{ collection: 'projectHistoryFailures' }
|
|
)
|
|
|
|
exports.ProjectHistoryFailure = mongoose.model(
|
|
'ProjectHistoryFailure',
|
|
ProjectHistoryFailureSchema
|
|
)
|