From 951d3a709031b21de19636e000e9dc7a76156c9a Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 15 Apr 2019 12:52:02 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/sw/register.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/api/endpoints/sw/register.ts b/src/server/api/endpoints/sw/register.ts index cb0572aa9..79bc18bf2 100644 --- a/src/server/api/endpoints/sw/register.ts +++ b/src/server/api/endpoints/sw/register.ts @@ -27,6 +27,7 @@ export const meta = { export default define(meta, async (ps, user) => { // if already subscribed const exist = await SwSubscriptions.findOne({ + createdAt: new Date(), userId: user.id, endpoint: ps.endpoint, auth: ps.auth,