getLastPkamAccessLogEntry method

  1. @override
Future<AccessLogEntry?> getLastPkamAccessLogEntry()
override

Most-recent access-log entry whose verb is pkam.

Implementation

@override
Future<AccessLogEntry?> getLastPkamAccessLogEntry() async {
  final rows = _db.raw.select(
      "SELECT from_atsign, request_at, verb_name, lookup_key FROM access_log "
      "WHERE verb_name = 'pkam' ORDER BY request_at DESC, seq DESC LIMIT 1;");
  return rows.isEmpty ? null : _entryFromRow(rows.first);
}