Skip to content

Commit

Permalink
feat(server): export GetGroupsByType
Browse files Browse the repository at this point in the history
Resolves overextended#171, with type fix.
  • Loading branch information
thelindat committed Oct 16, 2024
1 parent 1d8110a commit bb61fa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
1 change: 1 addition & 0 deletions server/groups/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,6 @@ addCommand<{ target: string; group: string; grade?: number }>(
}
);

exports('GetGroupsByType', GetGroupsByType);
exports('SetGroupPermission', SetGroupPermission);
exports('RemoveGroupPermission', RemoveGroupPermission);

0 comments on commit bb61fa2

Please sign in to comment.