This commit is contained in:
syuilo 2019-04-15 12:52:02 +09:00
parent 967e8595d4
commit 951d3a7090

View File

@ -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,