fix parsing reports, change tables to use timestamps

This commit is contained in:
Bilal Catic
2019-06-03 09:22:23 +02:00
parent cae217739a
commit c5408c1295
6 changed files with 87 additions and 32 deletions

View File

@@ -8,9 +8,9 @@ const USER_UNLOCKED_DOOR = 'unlocked';
const VALID_CSV_HEADERS = ['Date', 'Time', 'User No', 'Name', 'Event'];
const csvParserErrors = {
UNKNOWN_COLUMN: 'Unknown column',
INVALID_HEADERS: 'Invalid headers',
INVALID_ENTRY_EXPECTED_USER: 'Invalid entry type. Expected user entry type',
INVALID_ENTRY_EXPECTED_PASSAGE_MODE: 'Invalid entry type. Expected enable/disable passage mode',
INVALID_ENTRY_EXPECTED_PASSAGE_MODE: 'Invalid entry type. Expected enable/disable passage mode following user entry',
UNKNOWN_MEMBER: 'Member is not registered in OfficeRnD system',
};