1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-05 02:08:56 +09:00
This commit is contained in:
syuilo 2019-04-15 16:37:54 +09:00
parent 4d02ff27be
commit 190a5e175b
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

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