Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33461315
D13074.1769030679.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13074.1769030679.diff
View Options
diff --git a/keyserver/src/updaters/role-updaters.js b/keyserver/src/updaters/role-updaters.js
--- a/keyserver/src/updaters/role-updaters.js
+++ b/keyserver/src/updaters/role-updaters.js
@@ -5,7 +5,7 @@
import { getRolePermissionBlobs } from 'lib/permissions/thread-permissions.js';
import type { ThreadRolePermissionsBlob } from 'lib/types/thread-permission-types.js';
-import type { ThreadType } from 'lib/types/thread-types-enum.js';
+import type { ThinThreadType } from 'lib/types/thread-types-enum.js';
import type { ServerLegacyRoleInfo } from 'lib/types/thread-types.js';
import createIDs from '../creators/id-creator.js';
@@ -16,7 +16,7 @@
async function updateRoles(
viewer: Viewer,
threadID: string,
- threadType: ThreadType,
+ threadType: ThinThreadType,
): Promise<void> {
const currentRoles: $ReadOnlyArray<ServerLegacyRoleInfo> =
await fetchRoles(threadID);
diff --git a/lib/types/thread-types.js b/lib/types/thread-types.js
--- a/lib/types/thread-types.js
+++ b/lib/types/thread-types.js
@@ -32,7 +32,6 @@
type UserSurfacedPermission,
} from './thread-permission-types.js';
import {
- type ThreadType,
type ThinThreadType,
type ThickThreadType,
threadTypeValidator,
@@ -278,7 +277,7 @@
};
export type ThreadChanges = Partial<{
- +type: ThreadType,
+ +type: ThinThreadType,
+name: string,
+description: string,
+color: string,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 21, 9:24 PM (19 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5971689
Default Alt Text
D13074.1769030679.diff (1 KB)
Attached To
Mode
D13074: [keyserver][lib] Restrict updateRoles endpoint to ThinThreadType
Attached
Detach File
Event Timeline
Log In to Comment