perbaikan data
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user