/
1Rrd0
/
Course
Обзор
Документация
Войти
/
1Rrd0
/
Course
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/mongoose/lib/error/parallelSave.js
33 строки
532 B
dima
2
13 дек 2025, 10:58
13 дек 2025, 10:58
ce5a48e
Код
Авторство
О чём код?
'use strict'; /*! * Module dependencies. */ const MongooseError = require('./mongooseError'); /** * ParallelSave Error constructor. * * @param {Document} doc * @api private */ class ParallelSaveError extends MongooseError { constructor(doc) { const msg = 'Can\'t save() the same doc multiple times in parallel. Document: '; super(msg + doc._doc._id); } } Object.defineProperty(ParallelSaveError.prototype, 'name', { value: 'ParallelSaveError' }); /*! * exports */ module.exports = ParallelSaveError;