1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-18 09:35:25 +02:00
focalboard/server/app/sharing.go

23 lines
422 B
Go
Raw Normal View History

2021-01-13 01:35:30 +02:00
package app
import (
"database/sql"
"github.com/mattermost/mattermost-octo-tasks/server/model"
)
func (a *App) GetSharing(rootID string) (*model.Sharing, error) {
sharing, err := a.store.GetSharing(rootID)
if err == sql.ErrNoRows {
return nil, nil
}
if err != nil {
return nil, err
}
return sharing, nil
}
func (a *App) UpsertSharing(sharing model.Sharing) error {
return a.store.UpsertSharing(sharing)
}