Skip to content

Commit d540c1f

Browse files
committed
fix: Fixed Unable to update error
I was an idiot and didn't return the original result
1 parent 0259b03 commit d540c1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Supervisor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ private function api_callback(
181181
return $package_info;
182182
}
183183

184-
return (object) $updater->get_update_data( $args->slug, array( $args->locale ?? \get_locale() ) );
184+
$result = $updater->get_update_data( $args->slug, array( $args->locale ?? \get_locale() ) );
185+
186+
return $result ? (object) $result : $package_info;
185187
}
186188
}

0 commit comments

Comments
 (0)