Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
koskedk committed May 12, 2021
1 parent 28e0c52 commit 5dd1668
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion packages/client/src/containers/transfers/ProfileList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {Profile} from "./models/profile";
import {DataTable} from "primereact/datatable";
import {Column} from "primereact/column";
import {Button} from "primereact/button";
import Moment from "react-moment";
import TimeAgo from "react-timeago";
import Moment from "react-moment";
import moment from "moment";

interface Props {
Expand Down Expand Up @@ -40,6 +40,7 @@ export class ProfileList extends Component<Props, {}> {
manageTemplate = (rowData: any, column: any) => {
return (
<div>

<Button
icon="pi pi-plus"
onClick={(event) => this.manageAction(event, rowData)}
Expand Down Expand Up @@ -150,6 +151,7 @@ export class ProfileList extends Component<Props, {}> {
filter={true}
filterMatchMode={"contains"}
/>

<Column field="docket" header="Docket" sortable={true} filter={true}/>
<Column field="patientCount" header="Expected" sortable={true} body={this.numExpTemplate}/>
<Column field="recievedCount" header="Received" sortable={true} body={this.numRecTemplate}/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
EventPublisher,
ICommandHandler,
} from '@nestjs/cqrs';
import { LogManifestCommand } from '../log-manifest.command';
import {CACHE_MANAGER, Inject, Logger} from '@nestjs/common';
import {
Facility,
Expand Down
3 changes: 0 additions & 3 deletions packages/server/src/domain/transfers/facility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import {FacilityEnrolledEvent} from '../../application/transfers/events/facility
import {ManifestLoggedEvent} from '../../application/transfers/events/manifest-logged.event';
import {FacilityUpdatedEvent} from '../../application/transfers/events/facility-updated.event';
import {FacilityStatsUpdatedEvent} from '../../application/transfers/events/facility-stats-updated.event';
import {Metric} from '../metrices/metric';
import {Docket} from '../courts/docket';

export class Facility extends AggregateRoot {
manifests?: any[] = [];
Expand Down Expand Up @@ -114,7 +112,6 @@ export class Facility extends AggregateRoot {
if (!this.summaries) {
return false;
}

if (this.summaries && this.summaries.length > 0) {
const ds = this.summaries.filter(xx => xx.docket.name === docket);
return ds.length > 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class MessagingService {
})
public async subscribeToManifest(data: any) {
const manifest = JSON.parse(data);
Logger.log(`+++++++++++ ${manifest.docket} +++++++++`);
Logger.log(`++++++++++++ ${manifest.docket} +++++++++`);
Logger.log(`Received Manifest ${manifest.facilityName}`);

const cmd = new LogManifestCommand(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class IndicatorRepository extends BaseRepository<Indicator> implements II
const result = await this.model
.find({ facility: id })
.sort({ indicatorDate: -1 });

return result;
}

Expand All @@ -21,6 +22,7 @@ export class IndicatorRepository extends BaseRepository<Indicator> implements II
.find({ facility: facilityId, name: indicatorName, dwhValue: null })
.sort({indicatorDate: -1})
.limit(1);

return result;
}
}

0 comments on commit 5dd1668

Please sign in to comment.