Update link.service.ts

This commit is contained in:
piotrpekala7 2020-06-23 12:16:28 +02:00
parent c78517c22e
commit 206242dba9

View File

@ -55,6 +55,9 @@ export class LinkService {
}
updateLink(server: Server, link: Link) {
link.x = Math.round(link.x);
link.y = Math.round(link.y);
return this.httpServer.put<Link>(server, `/projects/${link.project_id}/links/${link.link_id}`, link);
}