# 알림 유형이 '시청 중'인 모든 사용자 가져오기

**URL:** https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671
**Category:** Development
**Tags:** notifications
**Created:** [2월 8, 2024, 11:18오전 UTC](https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671 "2024-02-08T11:18:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [2월 8, 2024, 11:18오전 UTC](https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671/1 "2024-02-08T11:18:09Z")

</div>

안녕하세요!  
Ruby에서 알림 유형이 "watching"인 모든 사용자를 가져오는 방법은 무엇인가요?

---

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [4월 23, 2025, 6:24오전 UTC](https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671/2 "2025-04-23T06:24:09Z")

</div>

`CategoryUser.where(notification_level: CategoryUser.notification_levels[:watching]).pluck(:user_id)`

---

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [4월 23, 2025, 6:24오전 UTC](https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671/3 "2025-04-23T06:24:35Z")

</div>

```plaintext
CategoryUser.where(notification_level: CategoryUser.notification_levels[:watching_first_post]).pluck(:user_id)

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [5월 23, 2025, 6:24오전 UTC](https://meta.discourse.org/t/get-all-users-who-have-watching-as-notification-type/294671/4 "2025-05-23T06:24:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
