···247247 }
248248 });
249249250250- if (!record.ok) throw new Error((record.data as { message?: string })?.message ?? 'Record not found');
250250+ if (!record.ok)
251251+ throw new Error((record.data as { message?: string })?.message ?? 'Record not found');
251252252253 return JSON.parse(JSON.stringify(record.data));
253254}