diff --git a/package-lock.json b/package-lock.json index 373d378..f8a7c9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cftools.js", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cftools.js", - "version": "1.0.2", + "version": "1.0.3", "license": "ISC", "dependencies": { "cache-manager": "^6.1.2", diff --git a/package.json b/package.json index e86c7ca..6c3727a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/classes/client.ts b/src/classes/client.ts index 40d275a..35a6b9a 100644 --- a/src/classes/client.ts +++ b/src/classes/client.ts @@ -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, } ); @@ -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, } ); @@ -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, } );