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

API to check if database is up to date #410

Open
hugomallet opened this issue Apr 5, 2022 · 0 comments
Open

API to check if database is up to date #410

hugomallet opened this issue Apr 5, 2022 · 0 comments

Comments

@hugomallet
Copy link

Hi,

It would be great if we could call an api from the server to check if the database is up-to-date.

To do something like this for example :

const databaseOutdated = await migrateMongo.isOutdated();
if (databaseOutdated) {
    throw new Error('Please migrate-up your database');
}
@hugomallet hugomallet changed the title API to check is database is up to date API to check if database is up to date Apr 5, 2022
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