refactor(utils): adds app to drop_db

This commit is contained in:
2024-11-02 19:19:29 -03:00
parent edc75fa27e
commit e77c25b398

View File

@@ -12,5 +12,7 @@ class DBUtils():
with app.app_context():
db.create_all()
def drop_db():
db.drop_all()
def drop_db(app):
with app.app_context():
db.drop_all()