flamerest 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REST.js +2 -2
- package/package.json +1 -1
package/REST.js
CHANGED
|
@@ -396,10 +396,10 @@ class FLAMEREST {
|
|
|
396
396
|
// Нормализуем имена таблиц
|
|
397
397
|
table = table.replace(/_/g, "");
|
|
398
398
|
|
|
399
|
-
params = {};
|
|
399
|
+
let params = {};
|
|
400
400
|
if(byFields instanceof Object) params = byFields;
|
|
401
401
|
|
|
402
|
-
return this.request(this.SERVER + '/api/' + this.version + '/' + table + '/delete?id=' + id, params, 'DELETE');
|
|
402
|
+
return this.request(this.SERVER + '/api/' + this.version + '/' + table + '/delete?id=' + id, JSON.stringify(params), 'DELETE');
|
|
403
403
|
|
|
404
404
|
}
|
|
405
405
|
|