diff --git a/src/utils/authUserRemove.js b/src/utils/authUserRemove.js index ba892fc..8af7503 100644 --- a/src/utils/authUserRemove.js +++ b/src/utils/authUserRemove.js @@ -5,7 +5,7 @@ import axios from 'axios' * @param {import('fastify').FastifyInstance} fastify */ export async function authUserRemove(username, fastify) { - const url = ((process.env.USER_URL + "/") || "http://localhost:3002/") + "users/" + username; + const url = (process.env.USER_URL || "http://localhost:3002") + "/users/" + username; const cookie = fastify.jwt.sign({ user: "admin" }); await axios.post(