All checks were successful
Queue Release Build / prepare (push) Successful in 15s
Deploy Web Apps / deploy (push) Successful in 6m54s
Queue Release Build / build-windows (push) Successful in 16m6s
Queue Release Build / build-linux (push) Successful in 30m58s
Queue Release Build / finalize (push) Successful in 44s
isolated users, db backup, weird disconnect issues for long voice sessions,
9 lines
361 B
TypeScript
9 lines
361 B
TypeScript
import { DataSource } from 'typeorm';
|
|
import { MetaEntity } from '../../../entities';
|
|
|
|
export async function handleGetCurrentUserId(dataSource: DataSource): Promise<string | null> {
|
|
const metaRepo = dataSource.getRepository(MetaEntity);
|
|
const metaRow = await metaRepo.findOne({ where: { key: 'currentUserId' } });
|
|
|
|
return metaRow?.value?.trim() || null;
|
|
} |