mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
12 lines
260 B
TypeScript
12 lines
260 B
TypeScript
import database from "../../database";
|
|
|
|
const truncate = async (): Promise<void> => {
|
|
await database.sync({ force: true });
|
|
};
|
|
|
|
const disconnect = async (): Promise<void> => {
|
|
return database.connectionManager.close();
|
|
};
|
|
|
|
export { truncate, disconnect };
|