1
2
3
4
5
6
7
8
9
10
11
12
import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
export async function markLessonComplete(emailAddress: string) {
await sqlite.execute({
sql: `
UPDATE students
SET has_completed_current_lesson = 1
WHERE email = ?;
`,
args: [emailAddress],
});
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
January 20, 2024