environmentalist.js
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -22,3 +22,5 @@ "use strict"; | ||
else { | ||
throw new __1.EnvironmentAlreadyTakenError("Environment \"" + this.name + "\" is already taken."); | ||
if (this.takenBy.id !== user.id) { | ||
throw new __1.EnvironmentAlreadyTakenError("Environment \"" + this.name + "\" is already taken."); | ||
} | ||
} | ||
@@ -25,0 +27,0 @@ }; |
{ | ||
"name": "environmentalist.js", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A simple Node.js app to be used with Slack for managing environment occupancy.", | ||
@@ -5,0 +5,0 @@ "license": "MITNFA", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80977
1329