Last active
March 13, 2017 08:47
-
-
Save panchicore/c621e8ca2371f530b0c4446dc75b589b to your computer and use it in GitHub Desktop.
reset parse-server installation badge counter directly from mongodb query
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
col = db.getCollection("_Installation") | |
col.update( | |
{badge: {$gt:0}}, | |
{$set: {badge:0}}, | |
{multi:true} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment