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

This commit is contained in:
creations 2025-05-02 17:40:37 -04:00
parent 61db491848
commit f93cef442a
Signed by: creations
GPG key ID: 8F553AA4320FC711
15 changed files with 280 additions and 72 deletions

View file

@ -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]);
});