use user.id

This commit is contained in:
notmd
2023-01-22 17:05:22 +07:00
parent 554e730d34
commit 0f0d0e00b5
+1 -1
View File
@@ -5,7 +5,7 @@ const handler = withoutRole("banned", async (req, res, token) => {
//TODO: add params if needed
const user = await getBackendUserCore(token.sub);
const params = new URLSearchParams({
username: token.sub,
username: user.id,
auth_method: user.auth_method,
});