mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 01:36:03 +02:00
Fix bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user