Skip to content
Snippets Groups Projects
Unverified Commit 190a5e17 authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 4d02ff27
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,6 @@ 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,
......@@ -45,6 +44,7 @@ export default define(meta, async (ps, user) => {
await SwSubscriptions.save({
id: genId(),
createdAt: new Date(),
userId: user.id,
endpoint: ps.endpoint,
auth: ps.auth,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment