From 64bbc55336687c7506f01911d3a9ca97863b1270 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,