Skip to content

Commit

Permalink
fix bug where day round command was starting modify command after
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrauch committed Mar 10, 2022
1 parent 9b240bf commit 0320cea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/commands/day.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const handler = async (argv: Arguments<Options>): Promise<void> => {
configuration,
);
await printDay(convertDateInputToISODate(date), configuration);
break;
case 'modify':
await modifyDay(
convertDateInputToISODate(date),
Expand Down
1 change: 0 additions & 1 deletion src/day/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { deleteTimeEntry, getMyTimeEntriesPerDate, saveTimer as saveTimeEntry }
import Table from 'cli-table';
import { formatTimerHours } from '../helper';
import { createInterface as createReadlineInterface } from 'readline';
import { HarveyError } from '../error';

export async function printDay(date: string, config: Config): Promise<void> {
return new Promise(async (resolve) => {
Expand Down

0 comments on commit 0320cea

Please sign in to comment.