mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-30 19:54:16 -04:00
Format code
This commit is contained in:
parent
b2c30ee059
commit
7c79c37d8c
@ -62,10 +62,14 @@ public class ScannerProducer : IScanner
|
|||||||
|
|
||||||
public Task SendRefreshRequest(string kind, Guid id)
|
public Task SendRefreshRequest(string kind, Guid id)
|
||||||
{
|
{
|
||||||
var message = new { Action = "refresh", Kind = kind.ToLowerInvariant(), Id = id };
|
var message = new
|
||||||
|
{
|
||||||
|
Action = "refresh",
|
||||||
|
Kind = kind.ToLowerInvariant(),
|
||||||
|
Id = id
|
||||||
|
};
|
||||||
var body = Encoding.UTF8.GetBytes(JsonSerializer.Serialize(message, Utility.JsonOptions));
|
var body = Encoding.UTF8.GetBytes(JsonSerializer.Serialize(message, Utility.JsonOptions));
|
||||||
_channel.BasicPublish("", routingKey: "scanner", body: body);
|
_channel.BasicPublish("", routingKey: "scanner", body: body);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ export const UserP = ResourceP("user")
|
|||||||
...x,
|
...x,
|
||||||
logo: imageFn(`/user/${x.slug}/logo`),
|
logo: imageFn(`/user/${x.slug}/logo`),
|
||||||
isVerified: x.permissions.length > 0,
|
isVerified: x.permissions.length > 0,
|
||||||
isAdmin: x.permissions?.includes("admin.write")
|
isAdmin: x.permissions?.includes("admin.write"),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export type User = z.infer<typeof UserP>;
|
export type User = z.infer<typeof UserP>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user