ui: add missing 'domainId' for error tracing (#1092)

This commit is contained in:
035966-L3 authored and GitHub committed 2025-12-24 07:17:38 +08:00
1 parent 296cdbb091
commit 0f75f7ce36
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -846,7 +846,7 @@ export async function del(domainId: string, tid: ObjectId) {
export async function get(domainId: string, tid: ObjectId): Promise<Tdoc> {
const tdoc = await document.get(domainId, document.TYPE_CONTEST, tid);
if (!tdoc) throw new ContestNotFoundError(tid);
if (!tdoc) throw new ContestNotFoundError(domainId, tid);
return tdoc;
}