Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

735 B
Raw Blame
package collections

import (
	"github.com/ente/museum/ente"
	"github.com/ente/stacktrace"
)

func (c *CollectionController) GetOwnedV2(userID int64, sinceTime int64, app ente.App, limit *int64) ([]ente.Collection, error) {
	collections, err := c.CollectionRepo.GetCollectionsOwnedByUserV2(userID, sinceTime, app, limit)
	if err != nil {
		return nil, stacktrace.Propagate(err, "")
	}
	return collections, nil
}

func (c *CollectionController) GetSharedWith(userID int64, sinceTime int64, app ente.App, limit *int64) ([]ente.Collection, error) {
	collections, err := c.CollectionRepo.GetCollectionsSharedWithUser(userID, sinceTime, app, limit)
	if err != nil {
		return nil, stacktrace.Propagate(err, "")
	}
	return collections, nil
}