mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
25 lines
547 B
JavaScript
25 lines
547 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
|
|
const { Schema } = mongoose
|
|
|
|
const ProjectHistoryFailureSchema = new Schema(
|
|
{
|
|
project_id: String,
|
|
ts: Date,
|
|
queueSize: Number,
|
|
error: String,
|
|
stack: String,
|
|
attempts: Number,
|
|
history: Schema.Types.Mixed,
|
|
resyncStartedAt: Date,
|
|
resyncAttempts: Number,
|
|
requestCount: Number,
|
|
},
|
|
{ collection: 'projectHistoryFailures', minimize: false }
|
|
)
|
|
|
|
exports.ProjectHistoryFailure = mongoose.model(
|
|
'ProjectHistoryFailure',
|
|
ProjectHistoryFailureSchema
|
|
)
|