overleaf/services/web/app/src/models/ProjectHistoryFailure.js

25 lines
544 B
JavaScript
Raw Normal View History

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
)