10 lines
213 B
TypeScript
10 lines
213 B
TypeScript
import { getDb } from "@money/shared/db";
|
|
|
|
if (!process.env.ZERO_UPSTREAM_DB) {
|
|
throw new Error("ZERO_UPSTREAM_DB is not set");
|
|
}
|
|
|
|
export const db = getDb({
|
|
connectionString: process.env.ZERO_UPSTREAM_DB,
|
|
});
|