appy-one / acebase-server

A fast, low memory, transactional, index & query enabled NoSQL database server for node.js that easily syncs with browser and node.js clients and servers
MIT License
32 stars 14 forks source link

rules.json incorrect root path for .schema #40

Closed donl closed 2 years ago

donl commented 2 years ago

When loading .schema rules from rules.json, the path being returned by the client using db.schema.all() are being prefixed with /rules

appy-one commented 2 years ago

Thanks for reporting, I'll look at it tomorrow!

appy-one commented 2 years ago

I found the culprit: https://github.com/appy-one/acebase-server/blob/dcdf9fd0cfdb57d7fecfb4c92519a8ed91e0981f/src/rules.ts#L111

This should be accessRules.rules I'll publish a fix just now

appy-one commented 2 years ago

Hi Don, I published version 1.14.0 that should fix this! Let me know if all works ok!