get_notifications_by_conditions( true ); Module::set_data_hash( $notifications ); return $this->respond_success_json( $notifications ); } catch ( Throwable $t ) { return $this->respond_error_json([ 'message' => $t->getMessage(), 'code' => 'internal_server_error', ]); } } }