Browse Source

renamed mongo collection and key name.

U-R500-INN\INN 11 years ago
parent
commit
a755460056
1 changed files with 4 additions and 4 deletions
  1. 4 4
      vertx/WebServer.java

+ 4 - 4
vertx/WebServer.java

@@ -82,8 +82,8 @@ public class WebServer extends Verticle implements Handler<HttpServerRequest> {
         "hello.persistor",
         new JsonObject()
             .putString("action", "findone")
-            .putString("collection", "world")
-            .putObject("matcher", new JsonObject().putNumber("id", (random.nextInt(10000) + 1))),
+            .putString("collection", "World")
+            .putObject("matcher", new JsonObject().putNumber("_id", (random.nextInt(10000) + 1))),
         new Handler<Message<JsonObject>>() {
           @Override
           public void handle(Message<JsonObject> reply) {
@@ -117,8 +117,8 @@ public class WebServer extends Verticle implements Handler<HttpServerRequest> {
           "hello.persistor",
           new JsonObject()
               .putString("action", "findone")
-              .putString("collection", "world")
-              .putObject("matcher", new JsonObject().putNumber("id", (random.nextInt(10000) + 1))),
+              .putString("collection", "World")
+              .putObject("matcher", new JsonObject().putNumber("_id", (random.nextInt(10000) + 1))),
           dbh);
     }
   }