forked from ttc/micro-service-api
Interface & Budget: Extravaganza Problematic
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user