From 47bd485a396321880b2d4588a0f80f0bc6f4acca Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Dec 2018 06:09:31 +0900 Subject: Clean up --- src/config/types.ts | 10 ++-------- src/push-sw.ts | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/config/types.ts b/src/config/types.ts index 3d78685e6a..6ca3e3b7f2 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -43,17 +43,11 @@ export type Source = { * Service Worker */ sw?: { - public_key: string; - private_key: string; + publicKey: string; + privateKey: string; }; clusterLimit?: number; - - user_recommendation?: { - external: boolean; - engine: string; - timeout: number; - }; }; /** diff --git a/src/push-sw.ts b/src/push-sw.ts index 2c09d0547e..bfd3b94a57 100644 --- a/src/push-sw.ts +++ b/src/push-sw.ts @@ -7,8 +7,8 @@ if (config.sw) { // アプリケーションの連絡先と、サーバーサイドの鍵ペアの情報を登録 push.setVapidDetails( config.url, - config.sw.public_key, - config.sw.private_key); + config.sw.publicKey, + config.sw.privateKey); } export default async function(userId: mongo.ObjectID | string, type: string, body?: any) { -- cgit v1.2.3-freya