Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: plugin-database-memory 无法正确加载数据库 #519

Closed
Tracked by #501
DGCK81LNN opened this issue Feb 15, 2022 · 1 comment
Closed
Tracked by #501

Bug: plugin-database-memory 无法正确加载数据库 #519

DGCK81LNN opened this issue Feb 15, 2022 · 1 comment
Labels
bug BUG

Comments

@DGCK81LNN
Copy link
Contributor

DGCK81LNN commented Feb 15, 2022

由于懒得装数据库,我就试了一下 memory 数据库,但是每次机器人重启后数据就丢失了。

await Promise.all(files.map(async (filename) => {
const extension = extname(filename)
if (extension !== loader) return

这里我通过调试发现 extension 的值是 ".json",而因为 loader"json",所以程序认为扩展名不匹配,跳过了加载。

@DGCK81LNN
Copy link
Contributor Author

开了个小pr(

本人经验少,请多指教(×

@shigma shigma added the bug BUG label Feb 15, 2022
@shigma shigma mentioned this issue Feb 16, 2022
14 tasks
@shigma shigma closed this as completed in 34aad76 Feb 16, 2022
@DGCK81LNN DGCK81LNN changed the title plugin-database-memory 无法正确加载数据库 Bug: plugin-database-memory 无法正确加载数据库 Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

2 participants