@jd-data-limited/easy-fm 3.2.9 → 3.2.10
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/package.json +1 -1
- package/src/records/field.js +1 -1
- package/src/records/field.ts +1 -1
package/package.json
CHANGED
package/src/records/field.js
CHANGED
|
@@ -131,7 +131,7 @@ export class Field {
|
|
|
131
131
|
yield this.record.layout.database.apiRequest(`${this.record.endpoint}/containers/${this.id}/1`, {
|
|
132
132
|
method: "POST",
|
|
133
133
|
// @ts-ignore
|
|
134
|
-
headers: { "Authorization": "Bearer " + this.record.layout.database.token, "
|
|
134
|
+
headers: { "Authorization": "Bearer " + this.record.layout.database.token, "content-type": "multipart/form-data" },
|
|
135
135
|
body: form
|
|
136
136
|
});
|
|
137
137
|
});
|
package/src/records/field.ts
CHANGED
|
@@ -140,7 +140,7 @@ export class Field<T extends FieldValue> {
|
|
|
140
140
|
await this.record.layout.database.apiRequest<null>(`${this.record.endpoint}/containers/${this.id}/1`, {
|
|
141
141
|
method: "POST",
|
|
142
142
|
// @ts-ignore
|
|
143
|
-
headers: {"Authorization": "Bearer " + this.record.layout.database.token, "
|
|
143
|
+
headers: {"Authorization": "Bearer " + this.record.layout.database.token, "content-type": "multipart/form-data"},
|
|
144
144
|
body: form
|
|
145
145
|
})
|
|
146
146
|
}
|