Skip to content

ema / @internals/db / UserOwnActorDB

Interface: UserOwnActorDB

Defined in: packages/ema/src/db/base.ts:207

Interface for user own actor relation database operations

Methods

addActorToUser()

ts
addActorToUser(entity): Promise<boolean>;

Defined in: packages/ema/src/db/base.ts:221

adds an actor to a user

Parameters

entity

UserOwnActorRelation

The user own actor relation data to add

Returns

Promise<boolean>

Promise resolving when the operation completes


listUserOwnActorRelations()

ts
listUserOwnActorRelations(req): Promise<UserOwnActorRelation[]>;

Defined in: packages/ema/src/db/base.ts:213

lists user own actor relations by user id

Parameters

req

ListUserOwnActorRelationsRequest

The request to list user own actor relations

Returns

Promise<UserOwnActorRelation[]>

Promise resolving to an array of user own actor relation data


removeActorFromUser()

ts
removeActorFromUser(entity): Promise<boolean>;

Defined in: packages/ema/src/db/base.ts:227

removes an actor from a user

Parameters

entity

UserOwnActorRelation

The user own actor relation data to remove

Returns

Promise<boolean>

Promise resolving when the operation completes