Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
ci(tsc): Fixes build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi committed Mar 25, 2019
1 parent 91b52f4 commit 4f2c56e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/statementCreators/actionOnSiteActivity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Moment } from 'moment';
import { Duration } from 'moment';
import UserSiteActivityAction from '../actionUtils/UserSiteActivityAction';
import { site, source } from '../statementConstants/activityTypes';
import createActivity from '../statementUtils/createActivity';
Expand All @@ -18,8 +18,8 @@ export interface SiteActivityAction extends UserSiteActivityAction {
/** Determines if the activity was passed or failed. */
readonly passed?: boolean;

/** Determines how long the activity took as an ISO Duration. */
readonly duration?: Moment.Duration;
/** Determines how long the activity took. */
readonly duration?: Duration;
}

/**
Expand All @@ -45,7 +45,9 @@ export default function actionOnSiteActivity(action: SiteActivityAction): Statem
result: pickDefined({
completion: action.completed,
success: action.passed,
duration: action.duration,
duration: action.duration === undefined ? undefined : (
action.duration.toISOString()
),
}),
}),
context: {
Expand Down

0 comments on commit 4f2c56e

Please sign in to comment.