Hello

My code stops working and im getting such error on my site:

500 - Internal Server Error

BSON value is type 'double_', expected to be one of [int_]

Responsible code for Mongo comunication is:

  public 
  {
    Json postLogin(string login, string password)
    {
      logInfo("Recived data for " ~ login ~ " and " ~ password);

      Bson query = Bson(["username" : Bson(login), "password": Bson(password)]);
      Nullable!User rusr = users.findOne!User(query);
      
      if (!rusr.isNull)
      {
        logInfo("User %s is allowed: %s", rusr.username, rusr.allowed);

        if (rusr.allowed)
        {
          respond = IDT(true, "null").serializeToJson;
        }

      }
      else respond = IDT(false, "null").serializeToJson;

      return respond;

    }
  }

What is strange before it was working without any problems.

//holo