Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Kiryakov <[email protected]>
  • Loading branch information
Stepan-Kirjakov committed Oct 9, 2024
1 parent 71266f2 commit da2d5f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions common/src/entity/policy-statistic-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export class PolicyStatisticDocument extends BaseEntity implements IStatistic {
@Property({ nullable: true })
documentFileId?: ObjectId;


/**
* Set defaults
*/
Expand All @@ -118,7 +117,6 @@ export class PolicyStatisticDocument extends BaseEntity implements IStatistic {
this.uuid = this.uuid || GenerateUUIDv4();
}


/**
* Create document
*/
Expand Down
2 changes: 1 addition & 1 deletion common/src/entity/policy-statistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class PolicyStatistic extends BaseEntity implements IStatistic {
index: true
})
policyInstanceTopicId?: string;

/**
* Config
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class StatisticAssessmentMessage extends Message {
* To documents
*/
public async toDocuments(key: string): Promise<ArrayBuffer[]> {
let document = JSON.stringify(this.document);
const document = JSON.stringify(this.document);
const buffer = Buffer.from(document);
return [buffer];
}
Expand Down
4 changes: 2 additions & 2 deletions guardian-service/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import {
PolicyModule,
PolicyProperty,
PolicyRoles,
PolicyStatistic,
PolicyStatistic,
PolicyStatisticDocument,
PolicyTest,
PolicyTool,
Expand Down Expand Up @@ -451,7 +451,7 @@ Promise.all([
'policy-discontinue',
async () => {
const date = new Date();
const policiesToDiscontunie = await dataBaseServer.find(Policy,{
const policiesToDiscontunie = await dataBaseServer.find(Policy, {
discontinuedDate: { $lte: date },
status: PolicyType.PUBLISH
});
Expand Down

0 comments on commit da2d5f1

Please sign in to comment.