Files
le-journal-d-un-podcast/node_modules/mongoose/lib/helpers/model/applyStatics.js
T
2022-09-15 01:55:36 -04:00

14 lines
257 B
JavaScript

'use strict';
/**
* Register statics for this model
* @param {Model} model
* @param {Schema} schema
* @api private
*/
module.exports = function applyStatics(model, schema) {
for (const i in schema.statics) {
model[i] = schema.statics[i];
}
};