GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
237 B

  1. package logs
  2. import "git.aiterp.net/rpdata/api/models"
  3. // Remove removes the log.
  4. func Remove(log models.Log) (models.Log, error) {
  5. err := collection.RemoveId(log.ID)
  6. if err != nil {
  7. return models.Log{}, err
  8. }
  9. return log, nil
  10. }