mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Fix defaultPut suffix parameter
This commit is contained in:
parent
e5e614fc4b
commit
0488058a02
@ -37,7 +37,7 @@ async function defaultDelete(type, id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function defaultPut(type, entry, id = undefined, suffix = undefined) {
|
async function defaultPut(type, entry, id = undefined, suffix = undefined) {
|
||||||
const resp = await fetch(`${BASE_PATH}/${type}/${id || entry.id}${suffix}`, {
|
const resp = await fetch(`${BASE_PATH}/${type}/${id || entry.id}${suffix || ''}`, {
|
||||||
headers: getHeaders(),
|
headers: getHeaders(),
|
||||||
body: JSON.stringify(entry),
|
body: JSON.stringify(entry),
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
|
Loading…
Reference in New Issue
Block a user