package characters import ( "git.aiterp.net/rpdata/api/models" "github.com/globalsign/mgo/bson" ) // FindID finds a character by id. func FindID(id string) (models.Character, error) { return find(bson.M{"_id": id}) } // FindNick finds a character by nick func FindNick(nick string) (models.Character, error) { return find(bson.M{"nicks": nick}) }