svg
This commit is contained in:
@ -137,6 +137,7 @@ function onInit() {
|
||||
|
||||
rpc.register("getPlayerParty");
|
||||
rpc.register("upsertPlayerParty");
|
||||
rpc.register("getPlayerPartys");
|
||||
|
||||
rpc.register("getPlayerPartyTile");
|
||||
rpc.register("upsertlayerPartyTile");
|
||||
@ -324,6 +325,15 @@ async function getPlayerParty(ctx,ids) {
|
||||
);
|
||||
return obj[0];
|
||||
}
|
||||
// Repository PlayerPartys
|
||||
async function getPlayerPartys(ctx,partyid) {
|
||||
var obj = await store.query(ctx, "PlayerParty",
|
||||
|
||||
{"eq":{ "partyid": partyid }}
|
||||
|
||||
);
|
||||
return obj;
|
||||
}
|
||||
async function upsertPlayerParty(ctx,playerparty) {
|
||||
var obj = await store.upsert(ctx, "PlayerParty", playerparty);
|
||||
return obj;
|
||||
|
Reference in New Issue
Block a user