rename some functions, change name to username ( username table), fix exports, add validations folder
All checks were successful
Code quality checks / biome (push) Successful in 9s
All checks were successful
Code quality checks / biome (push) Successful in 9s
This commit is contained in:
parent
61db491848
commit
f93cef442a
15 changed files with 280 additions and 72 deletions
|
@ -6,13 +6,13 @@ import {
|
|||
verifyRequiredVariables,
|
||||
} from "@config/environment";
|
||||
import { logger } from "@creations.works/logger";
|
||||
import { CassandraService } from "@lib/cassandra";
|
||||
import { cassandra } from "@lib/cassandra";
|
||||
|
||||
async function setup(): Promise<void> {
|
||||
verifyRequiredVariables();
|
||||
await CassandraService.connect({ withKeyspace: false });
|
||||
await cassandra.connect({ withKeyspace: false });
|
||||
|
||||
const client = CassandraService.getClient();
|
||||
const client = cassandra.getClient();
|
||||
const keyspace = cassandraConfig.keyspace;
|
||||
|
||||
if (!keyspace) {
|
||||
|
@ -60,7 +60,7 @@ setup()
|
|||
process.exit(1);
|
||||
})
|
||||
.finally(() => {
|
||||
CassandraService.shutdown().catch((error: Error) => {
|
||||
cassandra.shutdown().catch((error: Error) => {
|
||||
logger.error(["Error shutting down Cassandra client:", error as Error]);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue