Skip to content

Commit

Permalink
Fix user subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kudinov committed Oct 8, 2024
1 parent 029f96e commit e70178f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions frontend/app/modules/unread-counters/UnreadCountersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Select = styled.select`
const UnreadCountersPage: FC = () => {
const { unreadCountersStore: store } = useStore()
const [id, setId] = useState('')
const [type, setType] = useState<EntityType>('huid')
const [type, setType] = useState<EntityType>('user')

useEffect(() => {
return () => {
Expand All @@ -53,7 +53,7 @@ const UnreadCountersPage: FC = () => {
<FeatureHeader name="Каунтер непрочитанных событий" />
Тип
<Select className="input" onChange={handleTypeChange} defaultValue={type} id="type-select">
<option value="huid">пользователь</option>
<option value="user">пользователь</option>
<option value="chat">чат</option>
<option value="smartapp">smartapp</option>
</Select>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EmitterEventPayload } from '@expressms/smartapp-bridge/build/main/types/eventEmitter.d'

export type EntityType = 'huid' | 'chat' | 'smartapp'
export type EntityType = 'user' | 'chat' | 'smartapp'

export interface UnreadCounterSubscriptionEvent extends Omit<EmitterEventPayload, 'payload'> {
payload: {
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-feature-smartapp",
"version": "2.5.0",
"version": "2.5.1",
"description": "SmartApp with all features",
"main": "index.js",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"license": "ISC",
"dependencies": {
"@amcharts/amcharts5": "5.9.12",
"@expressms/smartapp-sdk": "1.10.0-alpha.2",
"@expressms/smartapp-sdk": "1.10.0-alpha.4",
"html5-qrcode": "2.3.8",
"jsoneditor": "10.1.0",
"material-icons": "1.13.12",
Expand Down
2 changes: 1 addition & 1 deletion frontend/smartapp-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"manifestVersion": "1.0.0",
"smartAppVersion": "",
"bundlePath": "",
"changeLog": "Антивирусная проверкуа файлов"
"changeLog": "Фикс подписки на юзера"
}
8 changes: 4 additions & 4 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1160,10 +1160,10 @@
lodash-es "^4.17.21"
uuid "^8.3.2"

"@expressms/[email protected].2":
version "1.10.0-alpha.2"
resolved "https://registry.yarnpkg.com/@expressms/smartapp-sdk/-/smartapp-sdk-1.10.0-alpha.2.tgz#2ca8ba6b66bfedbfb1d2af354dca6a9bc907438e"
integrity sha512-dZyzPSTpOEOJxm+0Vagh5L1V7pTI6Oua9SmL4gD0yERp9sYOOuq0tziJSGhqksIzO1TrRqUg6eZ8d/cgxNQYcw==
"@expressms/[email protected].3":
version "1.10.0-alpha.3"
resolved "https://registry.yarnpkg.com/@expressms/smartapp-sdk/-/smartapp-sdk-1.10.0-alpha.3.tgz#69ed818c32ed31056894969be5b1cdc9d929270a"
integrity sha512-52eUXr5rLg6Q5o9HFZL/Qf32Zho8zCWkIeuZ9ZvsTgPlgFziSebXfrBgOLkusHrjR4G5xhrPPo/bjGJDig09Ew==
dependencies:
"@expressms/smartapp-bridge" "1.4.0-alpha.1"

Expand Down

0 comments on commit e70178f

Please sign in to comment.