mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-02-08 20:39:18 -06:00
More debugging!!! Empty?????? Losing my damn mind right now
This commit is contained in:
@@ -222,13 +222,19 @@ public class GoogleExternalAuth {
|
||||
.flatMap(em -> Messages.sendDirectMessage(em, poll.getUser()))
|
||||
.doOnNext(s -> LogFeed.log(LogObject.forDebug("Auth 200: 3.1")))
|
||||
.then(Mono.just(GlobalConst.NOT_EMPTY))
|
||||
))
|
||||
).doOnNext(i -> LogFeed.log(LogObject.forDebug("Auth 200: 3.2"))))
|
||||
.switchIfEmpty(Messages.sendDirectMessage(
|
||||
Messages.getMessage("AddCalendar.Auth.Poll.Failure.ListCalendars", gs)
|
||||
, poll.getUser()).then(Mono.empty()))
|
||||
.doOnNext(s -> LogFeed.log(LogObject.forDebug("Auth 200: 4")))
|
||||
.then(Mono.error(new GoogleAuthCancelException()));
|
||||
});
|
||||
})
|
||||
.doOnNext(s -> LogFeed.log(LogObject.forDebug("Auth 200: 5")))
|
||||
.switchIfEmpty(Mono.defer(() -> {
|
||||
LogFeed.log(LogObject.forDebug("Auth 200: Empty????"));
|
||||
|
||||
return Mono.empty(); //For now, so we aren't breaking things more...
|
||||
}));
|
||||
} else {
|
||||
//Unknown network error...
|
||||
LogFeed.log(LogObject.forDebug("Network error; poll failure", "Status code: " + response.code()
|
||||
|
||||
@@ -232,6 +232,7 @@ public class DatabaseManager {
|
||||
.bind(15, set.isBranded())
|
||||
.execute())
|
||||
).flatMap(res -> Mono.from(res.getRowsUpdated()))
|
||||
.doOnNext(s -> LogFeed.log(LogObject.forDebug("Insert Settings: 3")))
|
||||
.hasElement()
|
||||
.thenReturn(true);
|
||||
}
|
||||
@@ -240,7 +241,7 @@ public class DatabaseManager {
|
||||
return Mono.just(false);
|
||||
}).switchIfEmpty(Mono.defer(() -> {
|
||||
LogFeed.log(LogObject.forDebug("Update Settings: Empty?????"));
|
||||
return Mono.empty();
|
||||
return Mono.empty(); //So we aren't breaking anything even more yet
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user