Skip to content

Server will crash on database error

Right now if TypeORM throws an error, the server will crash. This happens for legitimate cases, like if a user uploads a diagram of the same name (user + title is a unique constraint; might remove that).

All database actions should be wrapped in try-catch blocks to avoid this.