CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/database/postgres/server-settings.ts
Views: 687
1
import { PostgreSQL } from "./types";
2
import { AllSiteSettings } from "@cocalc/util/db-schema/types";
3
import { callback2 } from "@cocalc/util/async-utils";
4
5
// just to make this async friendly, that's all
6
export async function get_server_settings(
7
db: PostgreSQL
8
): Promise<AllSiteSettings> {
9
return await callback2(db.get_server_settings_cached);
10
}
11
12