function logActivity
logActivity(
message: string,
listing?: ListingRef | null,
attendeeId?: number | null,
transaction?: TxScope,
): Promise<ActivityLogEntry>

Log an activity. Optionally associate it with a listing and/or attendee so admin views can filter the log by either. A caller may pass its open write transaction so the activity and the action it records commit together.

Parameters

message: string
optional
listing: ListingRef | null
optional
attendeeId: number | null
optional
transaction: TxScope

Return Type

Usage

import { logActivity } from "doc.ts";