LittleDemon WebShell


Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
Path : /home/livedhms/lmgt/node_modules/mongoose/lib/error/
File Upload :
Command :
Current File : /home/livedhms/lmgt/node_modules/mongoose/lib/error/parallelSave.js

'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;

LittleDemon - FACEBOOK
[ KELUAR ]