MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / CreateTaskData

Function CreateTaskData

internal/db/tasks.go:21–23  ·  view source on GitHub ↗
(t *model.TaskItem)

Source from the content-addressed store, hash-verified

19}
20
21func CreateTaskData(t *model.TaskItem) error {
22 return errors.WithStack(db.Create(t).Error)
23}
24
25func GetTaskDataFunc(type_s string, enabled bool) func() ([]byte, error) {
26 if !enabled {

Callers 1

initTasksFunction · 0.92

Calls 1

CreateMethod · 0.65

Tested by

no test coverage detected