convex function not pushing from VS code to convex project dashboard
<script>
const CONVEX_URL = "https://my-actual-url.convex.cloud";
const client = new convex.ConvexClient(CONVEX_URL);
client.onUpdate("messages:list", {}, (messages) =>
console.log(messages.map((msg) => msg.body)),
);
</script>
and this is the function in a js file under "functions" in my root directory: import { mutation } from "./_generated/server";
import { v } from "convex/values";
export const login = mutation({
args: { email: v.string(), password: v.string() },
handler: async ({ db }, { email, password }) => {
// Query for user information
const user = await db.table("users").filter(q => q.eq("email", email)).first();
// Placeholder for actual password verification
// In a real application, you should hash the password and compare hashes
if (user && user.password === password) {
return { status: "success", user: user };
} else {
return { status: "failed" };
}
},
});
I am using the command "npx convex deploy" in the VS Code terminal and it seems to be showing as successful but not showing up on my dashboard:
any help would be very much appreciated!!!!
