Fix syntax error from 489fb9562b

This commit is contained in:
xbgmsharp
2024-01-12 22:13:54 +01:00
parent 0dd6410589
commit 5cf2d10757

View File

@@ -181,7 +181,7 @@ begin
-- Add email_otp check only if not from oauth server
if (NEW.preferences->>'email_verified')::boolean IS NOT True then
insert into process_queue (channel, payload, stored, ref_id) values ('email_otp', NEW.email, now(), NEW.user_id);
end if
end if;
return NEW;
END;
$new_account_otp_validation_entry$ language plpgsql;