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 {
|
} else {
|
||||||
// Только каналы этого юзера (или системные)
|
// Только каналы этого юзера (или системные)
|
||||||
spParams.push(userId);
|
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(
|
const { rows: schedPosts } = await query(
|
||||||
|
|||||||
Reference in New Issue
Block a user