Skip to content

microservice-job-broker


Class: StorageService ​

Defined in: packages/microservice/job-broker/src/quantification/services/storage.service.ts:10

Reads quantified report documents from MongoDB.

Constructors ​

Constructor ​

new StorageService(quantificationJobModel): StorageService

Defined in: packages/microservice/job-broker/src/quantification/services/storage.service.ts:15

Construct the service with the quantification job model.

Parameters ​

quantificationJobModel ​

Model<QuantificationJobReport>

Mongoose model for reading quantified job reports

Returns ​

StorageService

Methods ​

getQuantifiedReports() ​

getQuantifiedReports(): Promise<QuantificationJobReport[]>

Defined in: packages/microservice/job-broker/src/quantification/services/storage.service.ts:24

Fetch quantified job reports from MongoDB.

Returns ​

Promise<QuantificationJobReport[]>

A promise resolving to an array of quantified job report documents.