Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

fix(posthog): simplify user identification and account usage sync

Paulo Castellanoda0d5f2a42de
diff --git a/app/Jobs/PostHog/SyncUser.php b/app/Jobs/PostHog/SyncUser.php
index 79cbceaaf..c1d355c36 100644
--- a/app/Jobs/PostHog/SyncUser.php
+++ b/app/Jobs/PostHog/SyncUser.php
@@ -37,7 +37,7 @@ class SyncUser implements ShouldQueue
return;
}
- $postHog->identify((string) $user->id, [
+ $postHog->identify($user->id, [
'$email' => $user->email,
'$name' => $user->name,
'$set_once' => ['signed_up_at' => $user->created_at?->toIso8601String()],
@@ -45,8 +45,8 @@ class SyncUser implements ShouldQueue
if ($user->account_id) {
SyncAccountUsage::dispatch(
- (string) $user->account_id,
- $user->current_workspace_id ? (string) $user->current_workspace_id : null,
+ $user->account_id,
+ $user->current_workspace_id ? $user->current_workspace_id : null,
);
}
}