Add combined scripts

This commit is contained in:
2025-02-11 15:02:58 -05:00
parent 98e2e4073a
commit d90e9b51dc
3 changed files with 197 additions and 2 deletions

View File

@@ -543,5 +543,15 @@ async function resetDatabase() {
}
}
// Run the reset
resetDatabase();
// Export if required as a module
if (typeof module !== 'undefined' && module.exports) {
module.exports = resetDatabase;
}
// Run if called directly
if (require.main === module) {
resetDatabase().catch(error => {
console.error('Error:', error);
process.exit(1);
});
}