Fix discord ID search
This commit is contained in:
parent
e403b0cbee
commit
858bb67801
|
@ -1154,7 +1154,7 @@ class TetrioService extends DB {
|
||||||
if (kIsWeb) {
|
if (kIsWeb) {
|
||||||
dUrl = Uri.https('ts.dan63.by', 'oskware_bridge.php', {"endpoint": "tetrioUserByDiscordID", "user": user.toLowerCase().trim()});
|
dUrl = Uri.https('ts.dan63.by', 'oskware_bridge.php', {"endpoint": "tetrioUserByDiscordID", "user": user.toLowerCase().trim()});
|
||||||
} else {
|
} else {
|
||||||
dUrl = Uri.https('ch.tetr.io', 'api/users/search/${user.toLowerCase().trim()}');
|
dUrl = Uri.https('ch.tetr.io', 'api/users/search/discord:${user.toLowerCase().trim()}');
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
final response = await client.get(dUrl);
|
final response = await client.get(dUrl);
|
||||||
|
|
Loading…
Reference in New Issue