Skip to content

Commit

Permalink
fix: typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Oct 9, 2019
1 parent 5887e52 commit a179cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/features/google/store/google-drive-sync.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export class GoogleDriveSyncEffects {
}
}

private _openConfirmLoadDialog(remoteModified: string | Date): void {
private _openConfirmLoadDialog(remoteModified: number | Date): void {
// Don't open multiple at the same time
if (!this._matDialog.openDialogs.length || !this._matDialog.openDialogs.find((modal: MatDialogRef<any>) => {
return modal.componentInstance.constructor.name === DialogConfirmDriveSyncLoadComponent.name;
Expand Down Expand Up @@ -555,7 +555,7 @@ export class GoogleDriveSyncEffects {
return (d1.getTime() === d2.getTime());
}

private _formatDate(date: Date | string) {
private _formatDate(date: Date | number | string) {
return moment(date).format('DD-MM-YYYY --- hh:mm:ss');
}

Expand Down

0 comments on commit a179cd3

Please sign in to comment.