move add/rm/edit event in eventController

This commit is contained in:
les
2020-01-31 14:56:31 +01:00
parent fa0c2fe468
commit c8f2c4b552
7 changed files with 185 additions and 165 deletions

View File

@@ -76,7 +76,7 @@ const oauthController = {
* */
async getAccessToken (accessToken) {
const oauth_token = await OAuthToken.findByPk(accessToken,
{ include: [User, { model: OAuthClient, as: 'client' }] })
{ include: [{ model: User, attributes: { exclude: ['password'] } }, { model: OAuthClient, as: 'client' }] })
return oauth_token
},