@bygghammar/cms-platform 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/server/admin-core.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bygghammar/cms-platform",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.2",
|
|
4
4
|
"description": "Shared CMS platform: blocks, block types, i18n core, UI primitives and design-token contract used by every Bygghammar/Voyara site.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
package/src/server/admin-core.ts
CHANGED
|
@@ -76,7 +76,7 @@ export async function listUsersCore(deps: AdminDeps): Promise<AdminUser[]> {
|
|
|
76
76
|
.in("user_id", ids.length ? ids : ["00000000-0000-0000-0000-000000000000"]);
|
|
77
77
|
|
|
78
78
|
const rolesByUser = new Map<string, PlatformRole[]>();
|
|
79
|
-
for (const r of (
|
|
79
|
+
for (const r of (roleRows ?? []) as any[]) {
|
|
80
80
|
const arr = rolesByUser.get(r.user_id) ?? [];
|
|
81
81
|
arr.push(r.role as PlatformRole);
|
|
82
82
|
rolesByUser.set(r.user_id, arr);
|