Skip to content

Commit

Permalink
fix: add global AddRecord()
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Aug 3, 2023
1 parent 954c678 commit 38fcaa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions casdoorsdk/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ func (c *Client) AddRecord(record *Record) (bool, error) {
return resp.Data == "Affected", nil
}

func AddRecord(record *Record) (bool, error) {
return globalClient.AddRecord(record)
}

func (c *Client) GetRecords() ([]*Record, error) {
queryMap := map[string]string{
"owner": c.OrganizationName,
Expand Down

0 comments on commit 38fcaa4

Please sign in to comment.