Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/model/applyStatics.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/model/applyStatics.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/model/applyStatics.js
-
curl -L -o applyStatics.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/model/applyStatics.js
257 Bytes
| ; | |
| /** | |
| * 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]; | |
| } | |
| }; | |