From 4152e59638606790b4d3069e9360e129068c361c Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 10 Apr 2019 18:05:39 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/i/update-client-setting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/i/update-client-setting.ts b/src/server/api/endpoints/i/update-client-setting.ts index 49bcb35ae..36de18337 100644 --- a/src/server/api/endpoints/i/update-client-setting.ts +++ b/src/server/api/endpoints/i/update-client-setting.ts @@ -26,7 +26,7 @@ export default define(meta, async (ps, user) => { [ps.name]: ps.value }, }) - .where('id = :id', { id: user.id }) + .where('userId = :id', { id: user.id }) .execute(); // Publish event