1
0
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-07-02 04:39:23 +00:00
This commit is contained in:
SunWuyuan 2025-03-15 17:21:46 +08:00
parent 2d055f6400
commit 3ad77e6602
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64
2 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@ jobs:
with:
images: |
sunwuyuan/homeworkpage
ghcr.io/sunwuyuan/homeworkpage
ghcr.io/ClassworksDev/ClassworksServer
tags: |
type=sha
flavor: |

View File

@ -6,7 +6,7 @@ const prisma = new PrismaClient();
// 上传/更新作业数据
router.post("/:classId/homework", async (req, res) => {
try {
const date = new Date().toISOString().split("T")[0];
const date = req.query.date || new Date().toISOString().split("T")[0];
const data = req.body;
const className = req.params.classId;