const [createTimestamp, description] = splitN(data, " ", 1);
return Model.edit(createTimestamp, description);
}
- if (command == "State") {
- const [createTimestamp, state] = splitN(data, " ", 1);
- return Model.setState(timestamp, createTimestamp, state);
- }
if (command == "Priority") {
const [createTimestamp, newPriority] = splitN(data, " ", 1);
return Model.setPriority(createTimestamp, parseFloat(newPriority));
}
+ if (command == "State") {
+ const [createTimestamp, state] = splitN(data, " ", 1);
+ return Model.setState(timestamp, createTimestamp, state);
+ }
},
record: function (entry: string) {