feat(backend): delete flag endpoint
This commit is contained in:
parent
e20a7d3465
commit
758ab9ec5b
3 changed files with 43 additions and 3 deletions
|
@ -24,6 +24,10 @@ public static class AvatarObjectExtensions
|
|||
CancellationToken ct = default) =>
|
||||
await objectStorageService.RemoveObjectAsync(UserAvatarUpdateInvocable.Path(id, hash), ct);
|
||||
|
||||
public static async Task DeleteFlagAsync(this ObjectStorageService objectStorageService, string hash,
|
||||
CancellationToken ct = default) =>
|
||||
await objectStorageService.RemoveObjectAsync(CreateFlagInvocable.Path(hash), ct);
|
||||
|
||||
public static async Task<(string Hash, Stream Image)> ConvertBase64UriToImage(this string uri, int size, bool crop)
|
||||
{
|
||||
if (!uri.StartsWith("data:image/"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue