Skip to content
Snippets Groups Projects
Commit 1e08bac0 authored by L4168's avatar L4168
Browse files

add timestamps to drawings

parent 77aca909
No related branches found
No related tags found
3 merge requests!59Development to master,!54Development to testing,!53Mapdrawing replay
...@@ -34,6 +34,7 @@ export class DrawService { ...@@ -34,6 +34,7 @@ export class DrawService {
data: data.data, data: data.data,
drawingIsActive: data.drawingIsActive, drawingIsActive: data.drawingIsActive,
mapdrawing: mapDrawing.identifiers[0]['mapDrawingId'], mapdrawing: mapDrawing.identifiers[0]['mapDrawingId'],
timestamp: Date.now(),
}); });
await this.mapDrawHistoryRepository.insert(history); await this.mapDrawHistoryRepository.insert(history);
return mapDrawing.identifiers; return mapDrawing.identifiers;
...@@ -49,6 +50,7 @@ export class DrawService { ...@@ -49,6 +50,7 @@ export class DrawService {
data: data.data, data: data.data,
drawingIsActive: data.drawingIsActive, drawingIsActive: data.drawingIsActive,
mapdrawing: data.mapDrawingId, mapdrawing: data.mapDrawingId,
timestamp: Date.now(),
}); });
await this.mapDrawHistoryRepository.insert(history); await this.mapDrawHistoryRepository.insert(history);
return await this.mapDrawingRepository.save(drawing); return await this.mapDrawingRepository.save(drawing);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment