auth/helper.go:117 ERROR: operator does not exist: boolean = integer (SQLSTATE 42883) #2

Closed
opened 2021-12-29 19:25:59 +00:00 by evanchen · 0 comments

[12.818ms] [rows:-]
select count(*) from user_groups ug, users u
where group_id = (select id from groups where name = '*admin')
and user_id <> 'c76aru65hsljlm6f3060'
and u.id = user_id
and u.activated = 1
2021/12/29 19:24:38 ERR ntucool/api_user.go:120 > error="Cannot remove last admin account." duration=62 ip=127.0.0.1 method=PUT status=403 url=/api/icm/usr user=admin

[12.818ms] [rows:-] select count(*) from user_groups ug, users u where group_id = (select id from groups where name = '*admin') and user_id <> 'c76aru65hsljlm6f3060' and u.id = user_id and u.activated = 1 2021/12/29 19:24:38 ERR ntucool/api_user.go:120 > error="Cannot remove last admin account." duration=62 ip=127.0.0.1 method=PUT status=403 url=/api/icm/usr user=admin
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kumoly/app#2
There is no content yet.