Skip to content

Commit

Permalink
fix: onUpdate: restrict should only fail on fks update (#3194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Sep 20, 2022
1 parent 94146ed commit e0695f7
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 138 deletions.
Expand Up @@ -53,7 +53,7 @@ macro_rules! is_one_of {
#[macro_export]
macro_rules! run_query {
($runner:expr, $q:expr) => {{
let res = $runner.query($q).await?;
let res = $runner.query($q.to_string()).await?;
res.assert_success();
res.to_string()
}};
Expand All @@ -62,7 +62,7 @@ macro_rules! run_query {
#[macro_export]
macro_rules! run_query_pretty {
($runner:expr, $q:expr) => {{
let res = $runner.query($q).await?;
let res = $runner.query($q.to_string()).await?;
res.assert_success();
res.to_string_pretty()
}};
Expand Down

0 comments on commit e0695f7

Please sign in to comment.