chore: format + regenerate protocol
This commit is contained in:
1 parent
09bed2ccde
commit
a82217a5f3
20 files changed
+79
-74
No files matched your search
@@ -8,8 +8,7 @@ export type DeliveryContext = {
|
||||
|
||||
export function normalizeDeliveryContext(context?: DeliveryContext): DeliveryContext | undefined {
|
||||
if (!context) return undefined;
|
||||
const channel =
|
||||
typeof context.channel === "string" ? context.channel.trim() : undefined;
|
||||
const channel = typeof context.channel === "string" ? context.channel.trim() : undefined;
|
||||
const to = typeof context.to === "string" ? context.to.trim() : undefined;
|
||||
const accountId = normalizeAccountId(context.accountId);
|
||||
if (!channel && !to && !accountId) return undefined;
|
||||
|
||||
Reference in new issue
Block a user