mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
Fix bug
This commit is contained in:
parent
019f254b25
commit
84f5308ada
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,6 @@ 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,
|
||||||
|
@ -45,6 +44,7 @@ export default define(meta, async (ps, user) => {
|
||||||
|
|
||||||
await SwSubscriptions.save({
|
await SwSubscriptions.save({
|
||||||
id: genId(),
|
id: genId(),
|
||||||
|
createdAt: new Date(),
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
endpoint: ps.endpoint,
|
endpoint: ps.endpoint,
|
||||||
auth: ps.auth,
|
auth: ps.auth,
|
||||||
|
|
Loading…
Reference in a new issue