arangodb / arangojs

The official ArangoDB JavaScript driver.
https://arangodb.github.io/arangojs
Apache License 2.0
601 stars 107 forks source link

db.updateUser and db.replaceUser using wrong urls #783

Closed fspegni closed 1 year ago

fspegni commented 1 year ago

The functions updateUser and replaceUser in the database.ts file (here) seems to point towards wrong urls:

...
        path: `/api/user/${encodeURIComponent(username)}`,
...

instead of:

...
        path: `/_api/user/${encodeURIComponent(username)}`,
...

(note the underscore in /_api)