diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:39:14 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-28 16:39:14 +0900 |
| commit | 3d5cdb8d2d60932caf1d29b0581c7d6243e06e37 (patch) | |
| tree | 9c29d1062b08378d4c4cafe5976793616d45bc01 /src/api/endpoints/sw | |
| parent | wip (diff) | |
| download | misskey-3d5cdb8d2d60932caf1d29b0581c7d6243e06e37.tar.gz misskey-3d5cdb8d2d60932caf1d29b0581c7d6243e06e37.tar.bz2 misskey-3d5cdb8d2d60932caf1d29b0581c7d6243e06e37.zip | |
wip
Diffstat (limited to 'src/api/endpoints/sw')
| -rw-r--r-- | src/api/endpoints/sw/register.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/endpoints/sw/register.ts b/src/api/endpoints/sw/register.ts index 99406138db..1542e1dbeb 100644 --- a/src/api/endpoints/sw/register.ts +++ b/src/api/endpoints/sw/register.ts @@ -28,11 +28,11 @@ module.exports = async (params, user, _, isSecure) => new Promise(async (res, re // if already subscribed const exist = await Subscription.findOne({ - user_id: user._id, + userId: user._id, endpoint: endpoint, auth: auth, publickey: publickey, - deleted_at: { $exists: false } + deletedAt: { $exists: false } }); if (exist !== null) { @@ -40,7 +40,7 @@ module.exports = async (params, user, _, isSecure) => new Promise(async (res, re } await Subscription.insert({ - user_id: user._id, + userId: user._id, endpoint: endpoint, auth: auth, publickey: publickey |