fix: unable to submit server

This commit is contained in:
Eunwoo Choi 2023-06-05 22:16:06 +09:00 committed by GitHub
parent e89b96781a
commit c5670e3f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,8 +476,7 @@ async function submitServer(userID: string, id: string, data: AddServerSubmit):
desc: data.desc,
category: JSON.stringify(data.category),
invite: data.invite,
token: sign({ id }),
last_updated: new Date().toISOString()
token: sign({ id })
})
get.server.clear(id)
return true