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

fixing set function bug for deprecated use #464

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

robertschnuell
Copy link
Contributor

@robertschnuell robertschnuell commented Oct 2, 2023

It seems that in the process of refactoring from .js to .ts a bug got created which breaks the deprecated usage of the set function. This PR is fixing this problem.

Its just three letters which got wrong. cbDb.get.call which needed to be cbDb.set.call : https://github.com/ether/ueberDB/blob/main/index.ts#L223
This creates a misfunction way ahead in some third party etherpad plugin usage (in this case framasoft/ep_mypads ) with the current release of etherpad (1.9.3).
While etherpad 1.9.1 still uses ueberDB2 (v4.0.11) it works still fine. This was before the refactoring to typescript and in this case the set function was still using cbDb.set.call as it can be seen here:

if (cb != null) return cbDb.set.call(this.db, key, value, makeDoneCallback(cb, deprecated));

would be great if this PR got merged as well as etherpad dependency to ueberDB2 could be updated in the coming etherpad release, so that it is possible to run framasoft/ep_mypads on the latest etherpad relase again.

@SamTV12345
Copy link
Member

@robertschnuell Thanks for the fix. It indeed is an error. In earlier js files the call was correct.

@SamTV12345 SamTV12345 merged commit 453951e into ether:main Oct 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants