diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-30 07:20:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-30 07:20:27 +0900 |
| commit | 83d9730d93b976c2477808e1a6275937defff300 (patch) | |
| tree | 782e1d5a8d875f469223cc34e55d619347a5afe3 /src/server/api/endpoints/i/update_client_setting.ts | |
| parent | Fix bug (diff) | |
| download | sharkey-83d9730d93b976c2477808e1a6275937defff300.tar.gz sharkey-83d9730d93b976c2477808e1a6275937defff300.tar.bz2 sharkey-83d9730d93b976c2477808e1a6275937defff300.zip | |
#2020
Diffstat (limited to 'src/server/api/endpoints/i/update_client_setting.ts')
| -rw-r--r-- | src/server/api/endpoints/i/update_client_setting.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/i/update_client_setting.ts b/src/server/api/endpoints/i/update_client_setting.ts index 9342f5dadc..aed93c792f 100644 --- a/src/server/api/endpoints/i/update_client_setting.ts +++ b/src/server/api/endpoints/i/update_client_setting.ts @@ -1,6 +1,6 @@ import $ from 'cafy'; import User, { ILocalUser } from '../../../../models/user'; -import event from '../../../../stream'; +import { publishUserStream } from '../../../../stream'; export const meta = { requireCredential: true, @@ -26,7 +26,7 @@ export default async (params: any, user: ILocalUser) => new Promise(async (res, res(); // Publish event - event(user._id, 'clientSettingUpdated', { + publishUserStream(user._id, 'clientSettingUpdated', { key: name, value }); |