Skip to content

Commit

Permalink
fix: bad createdAt api params
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirasaki committed Nov 11, 2024
1 parent 6cafcd4 commit b297d37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cftools.js",
"version": "1.0.2",
"version": "1.0.3",
"description": "JavaScript implementation for the CFTools Data API.",
"access": "public",
"main": "dist/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/classes/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ export class CFToolsClient {
{
format: options.format,
identifier: resolvedIdentifier,
expiresAt: options.expires === 'PERMANENT' ? 'PERMANENT' : options.expires.toISOString(),
expires_at: options.expires === 'PERMANENT' ? 'PERMANENT' : options.expires.toISOString(),
reason: options.reason,
}
);
Expand Down Expand Up @@ -1850,7 +1850,7 @@ export class CFToolsClient {
this.requestClient.apiUrl(API_VERSION.V1, `/server/${options.serverApiId}/queuepriority`),
{
cftools_id: resolvedPlayerId,
expiresAt: options.expiresAt ? options.expiresAt.toISOString() : null,
expires_at: options.expiresAt ? options.expiresAt.toISOString() : null,
comment: options.comment,
}
);
Expand Down Expand Up @@ -1968,7 +1968,7 @@ export class CFToolsClient {
this.requestClient.apiUrl(API_VERSION.V1, `/server/${options.serverApiId}/whitelist`),
{
cftools_id: resolvedPlayerId,
expiresAt: options.expiresAt ? options.expiresAt.toISOString() : null,
expires_at: options.expiresAt ? options.expiresAt.toISOString() : null,
comment: options.comment,
}
);
Expand Down

0 comments on commit b297d37

Please sign in to comment.