add repo method GetQidOwner
This commit is contained in:
parent
0f69edc9d0
commit
548b461208
@ -309,7 +309,14 @@ func (r *AccountRepository) GetAccAndPrivilegeByEmail(ctx context.Context, email
|
||||
}
|
||||
|
||||
func (r *AccountRepository) GetQidOwner(ctx context.Context, qId string) (string, error) {
|
||||
userID, err := r.queries.GetQidOwner(ctx)
|
||||
qUUID, err := uuid.Parse(qId)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
qNullUUID := uuid.NullUUID{UUID: qUUID, Valid: true}
|
||||
|
||||
userID, err := r.queries.GetQidOwner(ctx, qNullUUID)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user