-
Notifications
You must be signed in to change notification settings - Fork 48
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
IndexedStore
— meta.added
property
#107
Comments
I created a test that demonstrates my expectation: https://github.com/nichoth/logux-client/blob/added/client/index.test.ts#L413 |
Strange.
if (exist) {
return false
} else {
let added = await promisify(store.os('log', 'write').add(entry))
delete store.adding[entry.created]
- meta.added = added
- return meta
+ return { ...meta, added }
}
} |
I tried changing the file in pnpm test But, it looks like there is already a check for 'added' there — https://github.com/logux/core/blob/main/each-store-check/index.js#L132 I'm not sure where it is failing. |
That test checks that store keep |
I will look on next week (too busy because of the conference on this week) |
I am calling
client.log.add
in the browser code, and the returned metadata does not have theadded
field.Looking at the source code, we see that 'added' is added to
meta
. I'm not sure why I don't see it.The text was updated successfully, but these errors were encountered: