MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetByOnlyTaskId

Function GetByOnlyTaskId

model/task.go:184–196  ·  view source on GitHub ↗
(taskId string)

Source from the content-addressed store, hash-verified

182}
183
184func GetByOnlyTaskId(taskId string) (*Task, bool, error) {
185 if taskId == "" {
186 return nil, false, nil
187 }
188 var task *Task
189 var err error
190 err = DB.Where("task_id = ?", taskId).First(&task).Error
191 exist, err := RecordExist(err)
192 if err != nil {
193 return nil, false, err
194 }
195 return task, exist, err
196}
197
198func GetByTaskId(userId int, taskId string) (*Task, bool, error) {
199 if taskId == "" {

Callers

nothing calls this directly

Calls 1

RecordExistFunction · 0.85

Tested by

no test coverage detected