mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
Resolving 500 error when deleting an action.
This commit is contained in:
@@ -248,7 +248,8 @@ export function deleteAction (item_id, action_type, user_id, item_type) {
|
||||
return () => {
|
||||
const action = {
|
||||
action_type,
|
||||
user_id
|
||||
user_id,
|
||||
item_id
|
||||
};
|
||||
|
||||
return fetch(`/api/v1/${item_type}/${item_id}/actions`, getInit('DELETE', action))
|
||||
|
||||
Reference in New Issue
Block a user