styles n stuff
This commit is contained in:
1 parent
6b8ebe3f35
commit
470270954f
7 files changed
+25
-10
No files matched your search
@@ -67,6 +67,11 @@ export default function createRpc(log: Log, pg: Pg, user: User, ws, discogs, off
|
||||
async function receive(message: any): Promise<RpcMessage> {
|
||||
const [msgType, params] = message;
|
||||
|
||||
if (!user) {
|
||||
log.debug('anon rpc call');
|
||||
return [RpcMessageType.Pong, []];
|
||||
}
|
||||
|
||||
if (msgType !== RpcMessageType.Ping) log.info({ msgType, params }, 'rpc message');
|
||||
|
||||
// // this sucks but can't figure out how to convince typescript to agree yet
|
||||
|
||||
Reference in new issue
Block a user