first commit

This commit is contained in:
kicap1992
2025-05-13 05:45:36 +08:00
parent f94ed88b95
commit 5329fb8265
1506 changed files with 99215 additions and 8 deletions

6
connection.ts Normal file → Executable file
View File

@ -1,4 +1,4 @@
// this is a test
// this is for connecting to the database
import mongoose, { Schema } from 'mongoose'; // Import Schema
import dotenv from 'dotenv';
@ -29,8 +29,8 @@ export async function testDatabaseConnection() {
console.log('Inserted data:', insertedData);
// Disconnect from the database
await mongoose.disconnect();
console.log('MongoDB Disconnected.');
// await mongoose.disconnect();
// console.log('MongoDB Disconnected.');
} catch (error) {
console.error('MongoDB Connection or Test Failed:', error);