mirror of
https://github.com/LukeHagar/arbiter.git
synced 2025-12-06 04:19:14 +00:00
formatting pass
This commit is contained in:
@@ -82,7 +82,12 @@ export class SQLiteStorage implements StorageAdapter {
|
||||
try {
|
||||
const rows = this.db
|
||||
.prepare('SELECT startedDateTime, time, request, response FROM har_entries ORDER BY id ASC')
|
||||
.all() as Array<{ startedDateTime: string; time: number; request: string; response: string }>;
|
||||
.all() as Array<{
|
||||
startedDateTime: string;
|
||||
time: number;
|
||||
request: string;
|
||||
response: string;
|
||||
}>;
|
||||
const entries = rows.map(
|
||||
(r: { startedDateTime: string; time: number; request: string; response: string }) => {
|
||||
let req: any = {};
|
||||
@@ -128,9 +133,11 @@ export class SQLiteStorage implements StorageAdapter {
|
||||
async getAllEndpoints(): Promise<Array<{ path: string; method: string; data: any }>> {
|
||||
if (!this.db) return [];
|
||||
try {
|
||||
const rows = this.db
|
||||
.prepare('SELECT path, method, data FROM endpoints')
|
||||
.all() as Array<{ path: string; method: string; data: string }>;
|
||||
const rows = this.db.prepare('SELECT path, method, data FROM endpoints').all() as Array<{
|
||||
path: string;
|
||||
method: string;
|
||||
data: string;
|
||||
}>;
|
||||
return rows.map((r: { path: string; method: string; data: string }) => {
|
||||
let data: any = {};
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user