mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
[web] last infrastructure conversions GitOrigin-RevId: ad1aff9b7df0610ed0303157d9e2c8032f32c02b
25 lines
551 B
JavaScript
25 lines
551 B
JavaScript
import mongoose from '../infrastructure/Mongoose.mjs'
|
|
|
|
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 }
|
|
)
|
|
|
|
export const ProjectHistoryFailure = mongoose.model(
|
|
'ProjectHistoryFailure',
|
|
ProjectHistoryFailureSchema
|
|
)
|