fix: ownCo not found → getOrCreateCompany instead of companies[0]

- Убрал fallback на companies[0] — небезопасно
- Если компания админа не найдена — создаём через getOrCreateCompany
This commit is contained in:
2026-06-11 11:18:59 +04:00
parent 2acad33fd4
commit 1794610f77
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ipwhitelist",
"version": "0.5.39",
"version": "0.5.40",
"description": "IP WhiteList microservice for cloud provider",
"main": "server.js",
"scripts": {