From 1f04b83be337cc91a3fabcf4e574e2306f3d2eaa Mon Sep 17 00:00:00 2001
From: Freya Murphy <freya@freyacat.org>
Date: Sat, 30 Mar 2024 12:14:42 -0400
Subject: refactor

---
 db/rest/util/_api_validate_text.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'db/rest/util/_api_validate_text.sql')

diff --git a/db/rest/util/_api_validate_text.sql b/db/rest/util/_api_validate_text.sql
index 2a3764c..e4a6a7b 100644
--- a/db/rest/util/_api_validate_text.sql
+++ b/db/rest/util/_api_validate_text.sql
@@ -29,7 +29,7 @@ BEGIN
 
 	IF _min IS NOT NULL AND _length < _min THEN
 		PERFORM _api.raise(
-			_msg => 'api_text_min',
+			_msg => 'api_min_value',
 			_detail => _column,
 			_hint => _min || ''
 		);
@@ -37,7 +37,7 @@ BEGIN
 
 	IF _max IS NOT NULL AND _length > _max THEN
 		PERFORM _api.raise(
-			_msg => 'api_text_max',
+			_msg => 'api_max_value',
 			_detail => _column,
 			_hint => _max || ''
 		);
-- 
cgit v1.2.3-freya

