fix(api): ensure we always have profile in cache (before inserted to clickhouse)

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-08-13 20:57:42 +02:00
parent 31ccfb8b5f
commit e5cacb73df
5 changed files with 48 additions and 27 deletions

View File

@@ -86,6 +86,10 @@ export default function AddNotificationRule({ rule }: Props) {
});
const onSubmit: SubmitHandler<IForm> = (data) => {
if (!data.config.events[0]?.name) {
toast.error('At least one event is required');
return;
}
mutation.mutate(data);
};
@@ -183,6 +187,10 @@ export default function AddNotificationRule({ rule }: Props) {
<code>{'{{properties.your.property}}'}</code> - Get the value
of a custom property
</li>
<li>
<code>{'{{profile.firstName}}'}</code> - Get the value of a
profile property
</li>
<li>
<div className="flex gap-x-2 flex-wrap">
And many more...