Fix #18035 - getting type null exception on feed (#18052)

This commit is contained in:
sonika-shah 2024-10-01 10:49:48 +05:30 committed by GitHub
parent 1d727d57bd
commit 683193fb41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1363,7 +1363,7 @@ public interface CollectionDAO {
+ " SELECT te.entityLink, te.type, te.taskStatus, te.id " + " SELECT te.entityLink, te.type, te.taskStatus, te.id "
+ " FROM thread_entity te " + " FROM thread_entity te "
+ " WHERE te.entityId = :entityId " + " WHERE te.entityId = :entityId "
+ ") AS combined " + ") AS combined WHERE combined.type IS NOT NULL "
+ "GROUP BY type, taskStatus, entityLink") + "GROUP BY type, taskStatus, entityLink")
@RegisterRowMapper(ThreadCountFieldMapper.class) @RegisterRowMapper(ThreadCountFieldMapper.class)
List<List<String>> listCountByEntityLink( List<List<String>> listCountByEntityLink(
@ -1639,7 +1639,7 @@ public interface CollectionDAO {
+ " AND (:toType2 IS NULL OR fr.toType LIKE CONCAT(:toType2, '.%') OR fr.toType = :toType2) " + " AND (:toType2 IS NULL OR fr.toType LIKE CONCAT(:toType2, '.%') OR fr.toType = :toType2) "
+ " AND fr.relation = 3 " + " AND fr.relation = 3 "
+ " ) " + " ) "
+ ") AS combined_results " + ") AS combined_results WHERE combined_results.type is not NULL "
+ "GROUP BY entityLink, type, taskStatus ") + "GROUP BY entityLink, type, taskStatus ")
@RegisterRowMapper(ThreadCountFieldMapper.class) @RegisterRowMapper(ThreadCountFieldMapper.class)
List<List<String>> listCountThreadsByGlossaryAndTerms( List<List<String>> listCountThreadsByGlossaryAndTerms(