Module: tasks/methods

Methods

(static) checkTask(_id, checked) → {number}

Sets checked status for a task

Parameters:
Name Type Description
_id string
checked boolean
Source:
Returns:

1 if successfull, otherwise 0

Type
number

(static) getMyTasks() → {Mongo.Cursor}

Returns a current user's tasks

Source:
Returns:
Type
Mongo.Cursor

(static) insertTask(text) → {string}

Creates a new task document

Parameters:
Name Type Description
text string
Source:
Returns:

inserted document _id

Type
string

(static) removeTask(_id) → {number}

Removes a task

Parameters:
Name Type Description
_id string
Source:
Returns:

1 if successfull, otherwise 0

Type
number