1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 16:28:12 +09:00
This commit is contained in:
syuilo 2019-04-15 12:52:02 +09:00
parent 06c621acc1
commit 64bbc55336
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -27,6 +27,7 @@ export const meta = {
export default define(meta, async (ps, user) => { export default define(meta, async (ps, user) => {
// if already subscribed // if already subscribed
const exist = await SwSubscriptions.findOne({ const exist = await SwSubscriptions.findOne({
createdAt: new Date(),
userId: user.id, userId: user.id,
endpoint: ps.endpoint, endpoint: ps.endpoint,
auth: ps.auth, auth: ps.auth,