chore: eslint max-len

This commit is contained in:
Peter Jaszkowiak
2021-02-04 02:07:29 -07:00
committed by Julian Lam
parent 5c2f0f0557
commit cc9d6fd08b
64 changed files with 459 additions and 137 deletions

View File

@@ -36,7 +36,10 @@ helpers.getUserDataByUserSlug = async function (userslug, callerUID) {
const { canViewInfo } = results;
const isSelf = parseInt(callerUID, 10) === parseInt(userData.uid, 10);
userData.age = Math.max(0, userData.birthday ? Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000) : 0);
userData.age = Math.max(
0,
userData.birthday ? Math.floor((new Date().getTime() - new Date(userData.birthday).getTime()) / 31536000000) : 0
);
userData.emailClass = 'hide';