Closed SquidXTV closed 4 months ago
Couldn't reproduce yet, might be a problem with prod environment. Like thread got created while bot was down and now missing the database entry created by:
Optional<Long> getAuthorByHelpThreadId(final long channelId) {
logger.debug("Looking for thread-record using channel ID: {}", channelId);
return database.read(context -> context.select(HelpThreads.HELP_THREADS.AUTHOR_ID)
.from(HelpThreads.HELP_THREADS)
.where(HelpThreads.HELP_THREADS.CHANNEL_ID.eq(channelId))
.fetchOptional(HelpThreads.HELP_THREADS.AUTHOR_ID));
}
About
Since the new release, this error comes up a lot of times. Might be worth looking into.