mirror of
https://github.com/wassname/talk.git
synced 2026-10-02 12:50:49 +08:00
More robust reactions
This commit is contained in:
1 parent
aed265efcc
commit
7d8f2aa876
6 files changed
+98
-22
No files matched your search
@@ -36,7 +36,7 @@ const createAction = async ({user = {}}, {item_id, item_type, action_type, group
|
||||
* Deletes an action based on the user id if the user owns that action.
|
||||
* @param {Object} user the user performing the request
|
||||
* @param {String} id the id of the action to delete
|
||||
* @return {Promise} resolves when the action is deleted
|
||||
* @return {Promise} resolves to the deleted action, or null if not found.
|
||||
*/
|
||||
const deleteAction = ({user}, {id}) => {
|
||||
return ActionModel.findOneAndRemove({
|
||||
|
||||
Reference in new issue
Block a user