add menu dining, transport and change table

This commit is contained in:
aji@catalis.app
2025-06-08 12:19:59 +07:00
parent 797958500c
commit f271341d4a
15 changed files with 209 additions and 100 deletions

View File

@@ -131,7 +131,7 @@
limit: number = 10,
) {
let query = supabase
.from("timesheets")
.from("vb_timesheets")
.select("*", { count: "exact" })
.order(sortColumn || "created_at", {
ascending: sortOrder === "asc",
@@ -240,7 +240,7 @@
if (isEditing && currentEditingId) {
const { error } = await supabase
.from("issues")
.from("vb_ssues")
.update(newIssue)
.eq("id", currentEditingId);
@@ -277,7 +277,7 @@
};
const { error } = await supabase
.from("timesheets")
.from("vb_timesheets")
.insert([TimesheetsInsert]);
if (error) {
console.error("Error adding issue:", error);
@@ -291,7 +291,7 @@
async function deleteTimesheet(id: string) {
if (confirm("Are you sure you want to delete this issue?")) {
const { error } = await supabase
.from("timesheets")
.from("vb_timesheets")
.delete()
.eq("id", id);
if (error) {
@@ -335,7 +335,7 @@
status: string,
): Promise<void> {
const { error } = await supabase
.from("timesheets")
.from("vb_timesheets")
.update({ approval: status })
.eq("id", id);