Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Alex2019
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 1
    • Groups 0

    Alex2019

    @Alex2019

    2
    Reputation
    101
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Alex2019 Follow

    Latest posts made by Alex2019

    • RE: Flags / reported (delete flags)

      @pitaj 2021-01-11_010358.png

      posted in Technical Support
      Alex2019
      Alex2019
    • RE: Flags / reported (delete flags)

      @pitaj

      To clean the lists /users?Section=flagged, just delete

      _key users: flags
      

      But you cannot remove from here / flags

      I get an error
      
      /api/flags
      
      Cannot read property 'charAt' of undefined
      
      posted in Technical Support
      Alex2019
      Alex2019
    • Flags / reported (delete flags)

      Ответ: Flags / reported (delete flags)

      db.objects.findOne({_key: "flag:2"})
      

      i get flag data:

      {
              "_id" : ObjectId("5ffac9b94ba3458bc25b469e"),
              "_key" : "flag:2",
              "datetime" : 1610271161831,
              "flagId" : 2,
              "targetId" : "111",
              "targetUid" : 1,
              "type" : "post",
              "state" : "resolved",
              "assignee" : "1"
      }
      

      But when I delete I get the error

      db.objects.remove({_key: "flag:2"})
      
      posted in Technical Support
      Alex2019
      Alex2019