mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-29 05:34:28 +00:00
feat: support removing certificates
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
"github.com/pocketbase/pocketbase/models"
|
||||
"github.com/usual2970/certimate/internal/app"
|
||||
"github.com/usual2970/certimate/internal/domain"
|
||||
"github.com/usual2970/certimate/internal/pkg/utils/types"
|
||||
)
|
||||
|
||||
type CertificateRepository struct{}
|
||||
@@ -52,7 +51,7 @@ func (r *CertificateRepository) GetById(ctx context.Context, id string) (*domain
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !types.IsNil(record.Get("deleted")) {
|
||||
if !record.GetDateTime("deleted").Time().IsZero() {
|
||||
return nil, domain.ErrRecordNotFound
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user