codihuston / gairos

A time-keeper and scheduler for tasks
9 stars 2 forks source link

Deleting a task, and re-creating it throws an error due to soft delete #45

Closed codihuston closed 4 years ago

codihuston commented 4 years ago

"You have already created this task!". Perhaps need to remove the deletedAt scope and set that value to null if it already exists in the database?

codihuston commented 4 years ago

Similarly, deleting a task and trying to re-create one with the same name does the same thing

codihuston commented 4 years ago

Refs #47

codihuston commented 4 years ago

Completed in: 17c44b85672b6813491e87afb4aac6ec80e95267

Note: userTasks are now optionally able to be permanently deleted (soft delete is not used for these anymore, but instead, isArchived is). See: a00f5d9eb0146b6e7401bfe8711fd2abe92b8e8c