scs
scs copied to clipboard
Prevent gorm from logging a warning when record is not found.
When using the First function, gorm will log that it failed to find a record. Since this case is valid in scs it makes no sense to log it. By using different syntax the same functionality is achieved but without the logging.