mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
25 lines
545 B
JavaScript
25 lines
545 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
|
|
)
|