From bb61fa2e12a2e6bb2320179ab961d8832404a592 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:10:48 +1100 Subject: [PATCH] feat(server): export GetGroupsByType Resolves #171, with type fix. --- lib/server/index.ts | 3 ++- server/groups/index.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/server/index.ts b/lib/server/index.ts index ccc8eab2..ea805720 100644 --- a/lib/server/index.ts +++ b/lib/server/index.ts @@ -3,7 +3,7 @@ import type { PayAccountInvoice, DeleteAccountInvoice } from 'server/accounts'; import type { OxPlayer } from 'server/player/class'; import type { GetCharIdFromStateId } from 'server/player/db'; import type { DeleteAccount, DepositMoney, WithdrawMoney } from 'server/accounts/db'; -import type { RemoveGroupPermission, SetGroupPermission } from 'server/groups'; +import type { GetGroupsByType, RemoveGroupPermission, SetGroupPermission } from 'server/groups'; import { Ox as OxCore, OxCommon } from 'lib'; interface OxServer extends OxCommon { @@ -19,6 +19,7 @@ interface OxServer extends OxCommon { RemoveGroupPermission: typeof RemoveGroupPermission; PayAccountInvoice: typeof PayAccountInvoice; DeleteAccountInvoice: typeof DeleteAccountInvoice; + GetGroupsByType: typeof GetGroupsByType; } export const Ox = OxCore as OxServer; diff --git a/server/groups/index.ts b/server/groups/index.ts index 907a662d..398dbbe8 100644 --- a/server/groups/index.ts +++ b/server/groups/index.ts @@ -139,5 +139,6 @@ addCommand<{ target: string; group: string; grade?: number }>( } ); +exports('GetGroupsByType', GetGroupsByType); exports('SetGroupPermission', SetGroupPermission); exports('RemoveGroupPermission', RemoveGroupPermission);