resonatecoop / api

The one Resonate API to rule them all

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create default scope on user model that excludes sensitive information

simonv3 opened this issue · comments

commented

Extend sequelize's model creation to include defaultScope:

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