Fix emoji and sticker saving

This commit is contained in:
Natsumi
2025-06-27 19:54:00 +12:00
parent 4e09c78e32
commit 1da99c7ca6
3 changed files with 60 additions and 19 deletions

View File

@@ -1,4 +1,23 @@
const inventoryReq = {
/**
* @param {{ inventoryId: string, userId: string }} params
* @returns {Promise<{json: any, params}>}
*/
getUserInventoryItem(params) {
return window.API.call(
`user/${params.userId}/inventory/${params.inventoryId}`,
{
method: 'GET'
}
).then((json) => {
const args = {
json,
params
};
return args;
});
},
/**
* @param {{ inventoryId: string }} params
* @returns {Promise<{json: any, params}>}