From 125eeec7470bdfa1060489af7beb7b50a79225f2 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sun, 29 May 2016 02:44:54 -0400 Subject: [PATCH] Don't explicitly save users when they're first seen, as they'll already be saved in the User constructor --- .../java/net/frozenorb/apiv3/routes/users/POSTUserLogin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLogin.java b/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLogin.java index 38f3ff4..ad6e4d5 100644 --- a/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLogin.java +++ b/src/main/java/net/frozenorb/apiv3/routes/users/POSTUserLogin.java @@ -37,8 +37,8 @@ public final class POSTUserLogin implements Route { } if (user == null) { + // Will be saved in the User constructor user = new User(uuid, username); - APIv3.getDatastore().save(user); } Server actorServer = Server.byId(actor.getName());