v3 adapt v2: port tags, cast, cron, deletUser and removeMember. Fix a few bugs in v3
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import uuid from '../libs/uuid';
|
||||
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
if (user.tags == null) {
|
||||
user.tags = [];
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import i18n from '../i18n';
|
||||
import _ from 'lodash';
|
||||
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
var i, tag, tid;
|
||||
tid = req.params.id;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import i18n from '../i18n';
|
||||
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
var i, ref, task;
|
||||
task = user.tasks[(ref = req.params) != null ? ref.id : void 0];
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import _ from 'lodash';
|
||||
import i18n from '../i18n';
|
||||
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
var i, tid;
|
||||
tid = req.params.id;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
return typeof cb === "function" ? cb(null, user.tags) : void 0;
|
||||
};
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
var from, ref, to;
|
||||
ref = req.query, to = ref.to, from = ref.from;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import i18n from '../i18n';
|
||||
import preenTodos from '../libs/preenTodos';
|
||||
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
var from, id, movedTask, preenedTasks, ref, task, tasks, to;
|
||||
id = req.params.id;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import i18n from '../i18n';
|
||||
import _ from 'lodash';
|
||||
|
||||
// TODO used only in client, move there?
|
||||
|
||||
module.exports = function(user, req, cb) {
|
||||
var i, tid;
|
||||
tid = req.params.id;
|
||||
|
||||
Reference in New Issue
Block a user