resonatecoop/api

create default scope on user model that excludes sensitive information

simonv3 opened this issue · 0 comments

Extend sequelize's model creation to include defaultScope:

defaultScope: {
          attributes: {
            exclude: ['password'],
          },
        },
        ```