WebexCommunity / webex-node-bot-framework

A framework for creating Webex Teams bots using node and express
MIT License
57 stars 48 forks source link

some record was automatically added to every data base when I start program #83

Open patom2000 opened 1 year ago

patom2000 commented 1 year ago

image when I start program, records in the picture are added to evey database. Have you ever met this bug? this is my database init code image

jpjpjp commented 1 year ago

Hi @patom2000, I'm not sure that I understand what is happening. Is there any chance you could join the "Webex Node Bot Framework" space on Webex to provide some more detail and potentially get some help from the community?

One question I might ask. Are you using the mongo store that comes with the framework or did you build a custom storage adapter. (It seems like it is the out-of-the-box one, but I wanted to confirm).

Also, can you provide an example of what is being written to the databases? Does it seem to be happening during initialization?

patom2000 commented 1 year ago

the data is records of space id that bot join.

and yes. I mix it with mongo official module to read whole data in collection. but I think this is not problem because first time I think it happen during init after I try to find the origin of the problem.there are two assumption that may be affect to it.

  1. happend when datastore use recall function and not found id many times in a row because it affect only database that i try to recall.
  2. restart framework too often becasuse it always show this warning before init framework image

Do you think opening framework in many place with same key affect this issue beacause i stop program other place, before I try to trigger it and this issue is not happen