Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pomarec
Copy link
Contributor

@pomarec pomarec commented Oct 2, 2025

It might be cleaner to set defaults values in the sql statement but i'm not sure how to make it properly

const { rows } = await this.db.executeSql(sql)

return rows.at(0) || null
return rows.at(0) || {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this result should be merged into the result of getQueueCache(name) so it can overwrite cached values found. This would also remove the need of introducing a new type.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timgit I prepared af4583f , would you need it ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already included this post-merge. Thanks

@timgit timgit changed the base branch from master to fix-queue-stats October 3, 2025 01:37
@timgit timgit merged commit bd16e8b into timgit:fix-queue-stats Oct 3, 2025
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