♻️ Extract the Storage service to DysonNetwork.Drive microservice
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| using System.ComponentModel.DataAnnotations; | ||||
| using DysonNetwork.Common.Interfaces; | ||||
| using DysonNetwork.Common.Models; | ||||
| using DysonNetwork.Sphere.Storage; | ||||
| using Microsoft.AspNetCore.Mvc; | ||||
| @@ -13,7 +14,7 @@ namespace DysonNetwork.Sphere.Realm; | ||||
| public class RealmController( | ||||
|     AppDatabase db, | ||||
|     RealmService rs, | ||||
|     FileReferenceService fileRefService, | ||||
|     IFileReferenceServiceClient fileRefService, | ||||
|     RelationshipService rels, | ||||
|     ActionLogService als, | ||||
|     AccountEventService aes | ||||
| @@ -424,7 +425,7 @@ public class RealmController( | ||||
|  | ||||
|             // Create a new reference | ||||
|             await fileRefService.CreateReferenceAsync( | ||||
|                 picture.Id, | ||||
|                 picture.Id.ToString(), | ||||
|                 "realm.picture", | ||||
|                 realm.ResourceIdentifier | ||||
|             ); | ||||
| @@ -445,7 +446,7 @@ public class RealmController( | ||||
|  | ||||
|             // Create a new reference | ||||
|             await fileRefService.CreateReferenceAsync( | ||||
|                 background.Id, | ||||
|                 background.Id.ToString(), | ||||
|                 "realm.background", | ||||
|                 realm.ResourceIdentifier | ||||
|             ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user