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
311 B

  1. package characters
  2. import "git.aiterp.net/rpdata/api/models"
  3. // Remove removes a character, returning it if it succeeds
  4. func Remove(character models.Character) (models.Character, error) {
  5. err := collection.RemoveId(character.ID)
  6. if err != nil {
  7. return models.Character{}, err
  8. }
  9. return character, nil
  10. }