mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add shared
This commit is contained in:
6
shared/services/DatabaseService.ts
Normal file
6
shared/services/DatabaseService.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
import mongoose from "mongoose";
|
||||
|
||||
export async function connectDatabase(connectionString: string) {
|
||||
await mongoose.connect(connectionString);
|
||||
}
|
||||
Reference in New Issue
Block a user