Fix boolean comparison, Add log table to schema visual

This commit is contained in:
Haidang666
2021-06-27 11:57:39 +07:00
parent f3542b7402
commit 41ba37c04e
2 changed files with 12 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ async function testUserNameChangelog(userID: string, newUserName: string, oldUse
return done(`UserID '${userID}' incorrect log on oldUserName: ${oldUserName} !== ${log.oldUserName}`);
}
if (+byAdmin !== log.updatedByAdmin) {
if (byAdmin !== Boolean(log.updatedByAdmin)) {
return done(`UserID '${userID}' incorrect log on updatedByAdmin: ${byAdmin} !== ${log.updatedByAdmin}`);
}