Cleaned up addedAt and updatedAt

This commit is contained in:
Nicholas Wallace 2024-03-01 23:11:02 +00:00
parent f4320049f8
commit 1c5798181a
11 changed files with 49 additions and 112 deletions

View file

@ -20,13 +20,9 @@ const FileMetadata = require('../metadata/FileMetadata')
* metadata:
* $ref: '#/components/schemas/fileMetadata'
* addedAt:
* description: The time (in ms since POSIX epoch) when the audio file was added to the library.
* type: integer
* example: 1650621074131
* $ref: '#/components/schemas/addedAt'
* updatedAt:
* description: The time (in ms since POSIX epoch) when the audio file last updated. (Read Only)
* type: integer
* example: 1651830828023
* $ref: '#/components/schemas/updatedAt'
* trackNumFromMeta:
* description: The track number of the audio file as pulled from the file's metadata. Will be null if unknown.
* type: [integer, 'null']

View file

@ -18,13 +18,9 @@ const FileMetadata = require('../metadata/FileMetadata')
* type: string
* example: epub
* addedAt:
* description: The time (in ms since POSIX epoch) when the library file was added.
* type: integer
* example: 1650621073750
* $ref: '#/components/schemas/addedAt'
* updatedAt:
* description: The time (in ms since POSIX epoch) when the library file was last updated.
* type: integer
* example: 1650621110769
* $ref: '#/components/schemas/updatedAt'
*/
class EBookFile {

View file

@ -17,13 +17,9 @@ const FileMetadata = require('../metadata/FileMetadata')
* metadata:
* $ref: '#/components/schemas/fileMetadata'
* addedAt:
* description: The time (in ms since POSIX epoch) when the library file was added.
* type: integer
* example: 1650621052494
* $ref: '#/components/schemas/addedAt'
* updatedAt:
* description: The time (in ms since POSIX epoch) when the library file was last updated.
* type: integer
* example: 1650621052494
* $ref: '#/components/schemas/updatedAt'
* fileType:
* description: The type of file that the library file is (audio, image, etc.).
* type: string