Fixed partnerui hashing and over all theming
This commit is contained in:
@@ -51,8 +51,10 @@ public sealed partial class HashService(IHashids hasher) : IService
|
||||
|
||||
int[] decoded = hasher.Decode(hash);
|
||||
|
||||
return Result.FailIf(decoded.Length <= 0, ValidationError.Create("Invalid or modified Int hash token."))
|
||||
.ToResult(decoded[0]);
|
||||
if (decoded.Length <= 0)
|
||||
return Result.Fail<int>(ValidationError.Create("Invalid or modified Int hash token."));
|
||||
|
||||
return Result.Ok(decoded[0]);
|
||||
}
|
||||
|
||||
public Result<long> DecodeLongIdHash(string hash)
|
||||
@@ -62,8 +64,10 @@ public sealed partial class HashService(IHashids hasher) : IService
|
||||
|
||||
long[] decoded = hasher.DecodeLong(hash);
|
||||
|
||||
return Result.FailIf(decoded.Length <= 0, ValidationError.Create("Invalid or modified Long hash token."))
|
||||
.ToResult(decoded[0]);
|
||||
if (decoded.Length <= 0)
|
||||
return Result.Fail<long>(ValidationError.Create("Invalid or modified Long hash token."));
|
||||
|
||||
return Result.Ok(decoded[0]);
|
||||
}
|
||||
|
||||
public async Task<Result<string>> DecodeHexHash(string hex) =>
|
||||
|
||||
Reference in New Issue
Block a user