migrate: add poj & fix bug (#801)

This commit is contained in:
panda authored and GitHub committed 2024-05-10 15:46:47 +08:00
1 parent 7c2e0ac400
commit 510d156383
4 files changed
+310 -8

No files matched your search

+1 -1
View File
@@ -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 },
);