Function: rowToHistoryEntry()
rowToHistoryEntry(
row
:HistoryRow
):StatusHistory
Defined in: electron/services/database/utils/historyMapper.ts:179
Converts a single database row to a StatusHistory object.
Parameters
row
The raw database row to convert.
Returns
The mapped StatusHistory object.
Remarks
Performs safe number conversion and status validation. If a value is invalid, it defaults to a safe fallback and logs a warning or error.
Example
const entry = rowToHistoryEntry(dbRow);
Throws
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error If mapping fails due to unexpected data types or missing fields.