perbaikan data

This commit is contained in:
aji@catalis.app
2025-06-08 20:10:23 +07:00
parent 84694ca894
commit b98814c4d5
9 changed files with 22 additions and 20 deletions

View File

@@ -232,7 +232,7 @@
limit: number = 10,
) {
let query = supabase
.from("vb_ssues")
.from("vb_issues")
.select("*", { count: "exact" })
.order(sort || "created_at", { ascending: order === "asc" })
.range(offset, offset + limit - 1);
@@ -353,7 +353,7 @@
if (isEditing && currentEditingId) {
const { error } = await supabase
.from("vb_ssues")
.from("vb_issues")
.update(newIssue)
.eq("id", currentEditingId);
@@ -393,7 +393,7 @@
};
const { error } = await supabase
.from("vb_ssues")
.from("vb_issues")
.insert([issueInsert]);
if (error) {
console.error("Error adding issue:", error);
@@ -414,7 +414,7 @@
async function deleteIssue(id: string) {
if (confirm("Are you sure you want to delete this issue?")) {
const { error } = await supabase
.from("vb_ssues")
.from("vb_issues")
.delete()
.eq("id", id);
if (error) {
@@ -469,7 +469,7 @@
async function moveIssueToProject(issueId: string) {
// update move_issue field in the issue
const { error: updateError } = await supabase
.from("vb_ssues")
.from("vb_issues")
.update({ move_issue: "PROJECT" })
.eq("id", issueId);
@@ -495,7 +495,7 @@
async function moveIssueToPurchaseOrder(issueId: string) {
// update move_issue field in the issue
const { error: updateError } = await supabase
.from("vb_ssues")
.from("vb_issues")
.update({ move_issue: "PURCHASE_ORDER" })
.eq("id", issueId);
if (updateError) {