MSP-3428 CRUD application_group, service -> application_group

This commit is contained in:
Demidyuk Oleg committed 2024-06-13 18:09:25 +03:00
1 parent 7108122102
commit bef400d0d9
26 files changed
+559 -395

No files matched your search

+4 -4
View File
@@ -97,14 +97,14 @@ func (r Token) DeleteToken(ctx context.Context, tokens []string) (int, error) {
func (r Token) AuthDataByToken(ctx context.Context, token string) (*entity.AuthData, error) {
q := `
SELECT system_id, domain_id, service_id, app_id, token.expire_time, token.created_at
SELECT system_id, domain_id, application_group_id, app_id, token.expire_time, token.created_at
FROM token
LEFT JOIN application
ON token.app_id = application.id
LEFT JOIN service
ON application.service_id = service.id
LEFT JOIN application_group
ON application.application_group_id = service.id
LEFT JOIN domain
ON service.domain_id = domain.id
ON application_group.domain_id = domain.id
WHERE token = $1
`
result := entity.AuthData{}