aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-12 12:21:35 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-12 12:21:35 +0500
commit4f3830d844dd0542e9e7b09e7a6c17ffbb796264 (patch)
tree0706885f0e5d76ad1f26bbf396971a911fa35fe8 /src/org
parent2f11883528f4bfb5210259f735531e216b40fb7d (diff)
downloadtraccar-server-4f3830d844dd0542e9e7b09e7a6c17ffbb796264.tar.gz
traccar-server-4f3830d844dd0542e9e7b09e7a6c17ffbb796264.tar.bz2
traccar-server-4f3830d844dd0542e9e7b09e7a6c17ffbb796264.zip
Fix copy/past issues
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/api/resource/DriverResource.java4
-rw-r--r--src/org/traccar/database/DriversManager.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/api/resource/DriverResource.java b/src/org/traccar/api/resource/DriverResource.java
index 4ccd11182..7fe0af473 100644
--- a/src/org/traccar/api/resource/DriverResource.java
+++ b/src/org/traccar/api/resource/DriverResource.java
@@ -86,8 +86,8 @@ public class DriverResource extends BaseResource {
public Response add(Driver entity) throws SQLException {
Context.getPermissionsManager().checkReadonly(getUserId());
Context.getDriversManager().addDriver(entity);
- Context.getDataManager().linkAttribute(getUserId(), entity.getId());
- Context.getAttributesManager().refreshUserAttributes();
+ Context.getDataManager().linkDriver(getUserId(), entity.getId());
+ Context.getDriversManager().refreshUserDrivers();
return Response.ok(entity).build();
}
diff --git a/src/org/traccar/database/DriversManager.java b/src/org/traccar/database/DriversManager.java
index 8df06d972..e89d59311 100644
--- a/src/org/traccar/database/DriversManager.java
+++ b/src/org/traccar/database/DriversManager.java
@@ -168,7 +168,7 @@ public class DriversManager {
}
public void removeDriver(long driverId) throws SQLException {
- dataManager.removeAttribute(driverId);
+ dataManager.removeDriver(driverId);
if (drivers.containsKey(driverId)) {
String driverUniqueId = drivers.get(driverId).getUniqueId();
drivers.remove(driverId);