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

TTL feature always status time -1 #207

Open
thuykaka opened this issue Sep 18, 2020 · 0 comments
Open

TTL feature always status time -1 #207

thuykaka opened this issue Sep 18, 2020 · 0 comments

Comments

@thuykaka
Copy link

thuykaka commented Sep 18, 2020

Which version are you using?
2.3.7
Describe the bug
When use TTL feature as

const [doc] = await nSQL('TABLE_NAME')
        .query('upsert', { /* data */ })
        .ttl(20)
        .exec()
const status = await nSQL('TABLE_NAME').expires(doc.id)

The output is

{ time: -1, cols: [] }

Expected behavior

{ time: 20, cols: [] }
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

No branches or pull requests

1 participant