mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
migrate: add poj & fix bug (#801)
This commit is contained in:
1 parent
7c2e0ac400
commit
510d156383
4 files changed
+310
-8
No files matched your search
@@ -254,7 +254,7 @@ hydrooj install https://hydro.ac/hydroac-client.zip
|
||||
// WHY you allow contest with end time BEFORE start time? WHY???
|
||||
const endAt = moment(tdoc.end_time).isSameOrBefore(tdoc.start_time) ? moment(tdoc.end_time).add(1, 'minute').toDate() : tdoc.end_time;
|
||||
const tid = await ContestModel.add(
|
||||
domainId, tdoc.title, tdoc.description || 'Description',
|
||||
domainId, tdoc.title, description || 'Description',
|
||||
adminUids[0], contestType, tdoc.start_time, endAt, pids, true,
|
||||
{ _code: password },
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user