Created
February 18, 2022 09:47
-
-
Save yvesbou/7f9cc1514eff4e52ebbd0ee27ce283bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = async (_, {id}, {models}) => { | |
const deleteCoin = await models.ERC20Coin.deleteOne({_id: id}); | |
if(deleteCoin.deletedCount) return{id: id} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment