mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: add missing 'domainId' for error tracing (#1092)
This commit is contained in:
1 parent
296cdbb091
commit
0f75f7ce36
3 files changed
+6
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user