Change id generation algorithm, display notifications total on the main page

This commit is contained in:
Maksim Eltyshev
2019-10-10 02:51:54 +05:00
parent 4911816734
commit e8139b29d5
86 changed files with 264 additions and 159 deletions

View File

@@ -12,7 +12,7 @@ module.exports = function defineCurrentUserHook(sails) {
let id;
try {
id = Number(sails.helpers.verifyToken(accessToken));
id = sails.helpers.verifyToken(accessToken);
} catch (unusedError) {
return;
}