Skip to content

Commit

Permalink
feat: audit graph properties (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbystedt authored Nov 9, 2023
1 parent 0b86305 commit b00a726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/audit/audit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export class AuditService {
collection: graphObj.collection,
},
},
...(graphObj.prop ? { prop: graphObj.prop } : {}),
},
});
};
Expand All @@ -582,6 +583,7 @@ export class AuditService {
source: graphObj.source.toString(),
target: graphObj.target.toString(),
},
...(graphObj.prop ? { prop: graphObj.prop } : {}),
},
},
});
Expand Down
4 changes: 2 additions & 2 deletions src/persistence/dto/vertex.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Column, Entity, Index, ObjectId, ObjectIdColumn } from 'typeorm';
import { PointGeom } from './point.geom';
import { ApiProperty } from '@nestjs/swagger';
import { VertexPointerDto } from './vertex-pointer.dto';
import { VertexInsertDto } from './vertex-rest.dto';
import { VertexInsertDto, VertexPropDto } from './vertex-rest.dto';
import { CollectionDtoUnion } from './collection-dto-union.type';
import { BrokerAccountDto } from './broker-account.dto';
import { plainToInstance } from 'class-transformer';
Expand Down Expand Up @@ -34,7 +34,7 @@ export class VertexDto {
* prop.label: Special case for labeling a vertex
*/
@Column()
prop?: any;
prop?: VertexPropDto;

static upgradeInsertDto(value: VertexInsertDto): VertexDto {
const vertex = new VertexDto();
Expand Down

0 comments on commit b00a726

Please sign in to comment.