Skip to content

Commit

Permalink
Update SyncListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed Sep 4, 2024
1 parent 1be07c1 commit c6d21e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sync/src/Listener/SyncListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ protected function handleModelEvent($model, $eventType)

// If this is a WordPress user model, include all meta data
if ($model instanceof \Moox\Press\Models\WpUser) {
$userMeta = $model->metas()->get()->pluck('meta_value', 'meta_key')->toArray();
$userMeta = $model->getAllMetaAttributes();
$this->logDebug('User meta data retrieved', ['user_meta' => $userMeta]);
$modelData = array_merge($modelData, $userMeta);
}

Expand Down

0 comments on commit c6d21e3

Please sign in to comment.