async fn normalize_filter(
database: &mut DefaultDb,
user_id: &UserId,
filter: Option<Filter>,
) -> Result<Option<FilterDefinition>, SyncError>Expand description
Since the client can send us a filter on the fly we need to normalize the the request.
We do not need this inside a transaction since we don’t need the same sort of integrity as other sync queries.