This commit is contained in:
2024-02-24 15:05:23 +01:00
parent 80bdf4afb5
commit ab084d515a
5 changed files with 77 additions and 35 deletions

View File

@ -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;