Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content
Commits on Source (2)
## [1.0.3](https://gitlab.opencode.de/bmi/opendesk/components/platform-development/images/opendesk-element-syncadmins/compare/v1.0.2...v1.0.3) (2024-11-21)
### Bug Fixes
* **syncadmins:** Remove duplicate logs. ([8c53817](https://gitlab.opencode.de/bmi/opendesk/components/platform-development/images/opendesk-element-syncadmins/commit/8c53817b4b5b8132059e3586fb46c316b667484c))
## [1.0.2](https://gitlab.opencode.de/bmi/opendesk/components/platform-development/images/opendesk-element-syncadmins/compare/v1.0.1...v1.0.2) (2024-11-20)
......
......@@ -102,7 +102,6 @@ func syncAdminUsers() int {
log.Print("executing plan")
for uid, admin := range plannedUsers {
log.Printf("+ adding: %s (admin=%d)", uid, admin)
if _, err := db.Exec(context.Background(), `insert into users(name, admin, creation_ts, shadow_banned, approved) values ($1, $2, extract('epoch' from CURRENT_TIMESTAMP)::bigint, false, true)
on conflict (name) do update set admin=$2`, "@"+uid+":"+domain, admin); err == nil {
log.Printf("+ %s, admin = %d\n", uid, admin)
......