mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 14:23:07 +00:00
fix: "run" : false,
This commit is contained in:
@@ -40,6 +40,10 @@ func (h *PasteHandler) SubmitPaste(c *gin.Context) {
|
||||
UpdatedAt: time.Now(),
|
||||
}
|
||||
|
||||
if !req.Run {
|
||||
paste.Status = model.StatusCompleted
|
||||
}
|
||||
|
||||
if err := h.repo.Save(paste); err != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{
|
||||
"message": "Internal Server Error",
|
||||
|
||||
Reference in New Issue
Block a user