mirror of
https://github.com/Threnklyn/zeit.git
synced 2026-05-25 16:18:30 +02:00
Fixed #2, removed initial check for existing entries, adding a separate one
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ func NewEntry(
|
||||
return Entry{}, err
|
||||
}
|
||||
|
||||
if newEntry.IsFinishedAfterBegan() == false {
|
||||
if id == "" && newEntry.IsFinishedAfterBegan() == false {
|
||||
return Entry{}, errors.New("beginning time of tracking cannot be after finish time")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user