Skip to content

Commit 95eb8c9

Browse files
Merge pull request #23 from TrioMatt/workaround-for-toggl-incorrectly-flagging
Work around for toggl api incorrectly flagging
2 parents 242a85a + 2316af4 commit 95eb8c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,8 @@ async function SyncTimeEntries () {
11531153
continue
11541154
}
11551155

1156-
if (timeEntry.duronly) {
1156+
// if (timeEntry.duronly) { // This is the recommended documentation way, however, it is false-positive and always true currently.
1157+
if (!(timeEntry.start && timeEntry.stop)) { // Using alternative manual check
11571158
console.warn('Duration only time entries are not yet implemented.')
11581159
await deletePreviousTimeEntryMapping()
11591160
syncResults.ignored.push({
@@ -1163,7 +1164,6 @@ async function SyncTimeEntries () {
11631164
continue
11641165
}
11651166

1166-
11671167
if (activeCollabSummary === '') {
11681168
await deletePreviousTimeEntryMapping()
11691169
syncResults.ignored.push({

0 commit comments

Comments
 (0)