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/next/lib/share/project-avatar-image.ts
Views: 687
1
import getPool from "@cocalc/database/pool";
2
3
export async function getProjectAvatarTiny(
4
project_id: string
5
): Promise<string | undefined> {
6
const pool = getPool("long");
7
const { rows } = await pool.query(
8
"SELECT avatar_image_tiny FROM projects WHERE project_id=$1",
9
[project_id]
10
);
11
return rows[0].avatar_image_tiny;
12
}
13
14