Updated server/model/* JSDoc to match new methods

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Matthew Nickson 2022-04-21 18:30:04 +01:00
parent 4ddbf71920
commit 0083485d4c
No known key found for this signature in database
GPG key ID: BF229DCFD4748E05
4 changed files with 55 additions and 6 deletions

View file

@ -1,6 +1,10 @@
const { BeanModel } = require("redbean-node/dist/bean-model");
class Proxy extends BeanModel {
/**
* Return a object that ready to parse to JSON
* @returns {Object}
*/
toJSON() {
return {
id: this._id,