Add preferences tab to user settings, add subscribe to own cards option

This commit is contained in:
Maksim Eltyshev
2020-04-10 00:11:34 +05:00
parent 9b4e3931a9
commit 88314e826d
13 changed files with 96 additions and 2 deletions

View File

@@ -40,6 +40,9 @@ module.exports = {
isNotEmptyString: true,
allowNull: true,
},
subscribeToOwnCards: {
type: 'boolean',
},
},
exits: {
@@ -59,6 +62,7 @@ module.exports = {
'username',
'phone',
'organization',
'subscribeToOwnCards',
]);
const user = await sails.helpers