@dench.com/cli 3.11.35-staging.803 → 3.11.36-staging.805
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/meetings.ts +3 -1
- package/package.json +1 -1
package/meetings.ts
CHANGED
|
@@ -223,7 +223,9 @@ async function runShare(ctx: CrmCliContext): Promise<void> {
|
|
|
223
223
|
const result = (await callMutation(ctx, api.sharing.set, {
|
|
224
224
|
meetingEntryId,
|
|
225
225
|
shared: toWorkspace,
|
|
226
|
-
})) as { sharedWithWorkspace: boolean };
|
|
226
|
+
})) as { sharedWithWorkspace: boolean } | null;
|
|
227
|
+
// The server answers `null` for a meeting this caller cannot read.
|
|
228
|
+
if (!result) throw new CrmCliError(`Meeting not found: ${meetingEntryId}`);
|
|
227
229
|
if (ctx.jsonOutput) {
|
|
228
230
|
out(ctx, result);
|
|
229
231
|
return;
|