This commit is contained in:
2020-01-22 16:37:50 +00:00
parent 070688265b
commit f2898b8149
8 changed files with 67 additions and 276 deletions

View File

@@ -186,10 +186,7 @@ namespace AyaNova.Api.Controllers
//does attach to object exist?
if (!badRequest)
{
//check if object exists
//Updated code: this used to check if the o wnerId was -1 to see if it didn't exist, but since ow nerId zapped this seems like the next best way to do it
//Not sure at all what the ow nerid check was doing before that verified it's existance, the code is long gone now and I can't be arsed to look it up in the repo history
//If the tests pass then it's fine :)
//check if object exists
if (!BizObjectExistsInDatabase.Exists(attachToObject))
{
badRequest = true;