mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
feat: update terminal entry constructor to initialize timestamp by default
This commit is contained in:
@@ -6,7 +6,7 @@ import 'system_log_data.dart';
|
||||
class TerminalEntry {
|
||||
TerminalEntry({
|
||||
required this.id,
|
||||
required this.ts,
|
||||
DateTime? ts,
|
||||
required this.source,
|
||||
required this.level,
|
||||
this.requestId,
|
||||
@@ -15,7 +15,7 @@ class TerminalEntry {
|
||||
this.network,
|
||||
this.js,
|
||||
this.system,
|
||||
});
|
||||
}) : ts = ts ?? DateTime.now();
|
||||
|
||||
final String id;
|
||||
final DateTime ts;
|
||||
|
||||
Reference in New Issue
Block a user