add menu dining, transport and change table
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user