Interface & Budget: Extravaganza Problematic

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-17 14:22:22 +07:00
parent c6aff996d6
commit 33f8fce3e6
5 changed files with 14 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ export class Interface {
// ===============================================================
// 📌 saveInterface → แกะ token เอง และ route ไปยัง interface เฉพาะ table
// ===============================================================
async saveInterface(tableName, req, data) {
async saveInterface(tableName, data, req) {
// ------------------------------
// ✔ 1) จับ Interface ที่ตรงกับ table

View File

@@ -9,7 +9,7 @@ export class BdgmstInterface {
}
async saveInterface(database, data) {
const method = data.method.toLowerCase()
const method = data.methods.toLowerCase()
const payload = { ...data }
delete payload.method