Skip to content

Conversation

@jjjrmy
Copy link
Contributor

@jjjrmy jjjrmy commented Jan 23, 2025

No description provided.

@jjjrmy
Copy link
Contributor Author

jjjrmy commented Jan 23, 2025

I think something might be wrong with the function - I need to debug further:

Nothing to migrate

 ERROR  [nuxt] [request error] [unhandled] [500] aborted

 WARN  [Vue Router warn]: No match found for location with path "/api/user"

 WARN  [Vue Router warn]: No match found for location with path "/api/user"

 ERROR  [nuxt] [request error] [unhandled] [500] Unable to acquire a connection

@jjjrmy
Copy link
Contributor Author

jjjrmy commented Jan 23, 2025

it seems sutando.destroyAll(); is the problem, when that is removed I don't get any aborted errors... looking into it now.

@jjjrmy
Copy link
Contributor Author

jjjrmy commented Jan 23, 2025

I changed it so the destroyAll() is conditional - because in my test cases it was destroying the connection then trying to connect to make a query right after. so if it's in the same request we don't want it to destroy the connection.

correct me if I'm wrong, right now it's default to false - and the migration commands set it to true.

@kiddyuchina kiddyuchina merged commit 958da39 into sutandojs:main Jan 24, 2025
3 checks passed
@jjjrmy jjjrmy deleted the feat/migration-functions branch January 24, 2025 15:07
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