mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
11 lines
259 B
TypeScript
11 lines
259 B
TypeScript
import { EntityManager } from 'typeorm'
|
|
|
|
export const setClaims = async (
|
|
t: EntityManager,
|
|
uid: string
|
|
): Promise<void> => {
|
|
const dbRole = 'omnivore_user'
|
|
return t
|
|
.query('SELECT * from omnivore.set_claims($1, $2)', [uid, dbRole])
|
|
.then()
|
|
}
|