fix: calendar shows only user's own channels, not system blog channel
This commit is contained in:
@@ -96,7 +96,7 @@ router.get('/', async (req, res) => {
|
||||
} else {
|
||||
// Только каналы этого юзера (или системные)
|
||||
spParams.push(userId);
|
||||
spWhere += ` AND (c.user_id = $${spParams.length} OR c.is_system = true)`;
|
||||
spWhere += ` AND c.user_id = ${spParams.length}`;
|
||||
}
|
||||
|
||||
const { rows: schedPosts } = await query(
|
||||
|
||||
Reference in New Issue
Block a user