Appearance
ema / @internals/db / UserOwnActorDB
Interface: UserOwnActorDB
Defined in: db/base.ts:200
Interface for user own actor relation database operations
Methods
addActorToUser()
ts
addActorToUser(entity): Promise<boolean>;Defined in: db/base.ts:214
adds an actor to a user
Parameters
entity
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: db/base.ts:206
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: db/base.ts:220
removes an actor from a user
Parameters
entity
The user own actor relation data to remove
Returns
Promise<boolean>
Promise resolving when the operation completes