Skip to content

More JSON fun

More JSON fun #1300

Triggered via push August 28, 2024 04:54
Status Failure
Total duration 1m 16s
Artifacts

ci.yml

on: push
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

29 errors and 10 warnings
Types: src/SocketServer.js#L395
Argument of type '{ roles: never[]; id: UserID; username: string; slug: string; activePlaylistID: PlaylistID | null; pendingActivation: boolean; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type '{ id: UserID; username: string; slug: string; avatar: string | null; activePlaylistID: PlaylistID | null; pendingActivation: boolean; createdAt: Date; updatedAt: Date; }'.
Types: src/controllers/acl.js#L32
Argument of type 'string[]' is not assignable to parameter of type 'Permission[]'.
Types: src/controllers/bans.js#L57
Argument of type '{ roles: never[]; id: UserID; username: string; slug: string; activePlaylistID: PlaylistID | null; pendingActivation: boolean; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type '{ id: UserID; username: string; slug: string; avatar: string | null; activePlaylistID: PlaylistID | null; pendingActivation: boolean; createdAt: Date; updatedAt: Date; }'.
Types: src/controllers/booth.js#L30
Property 'user' does not exist on type '{ _id: HistoryEntryID; userID: UserID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; media: { _id: MediaID; ... 6 more ...; sourceData: JsonObject; }; }'.
Types: src/controllers/booth.js#L34
Property 'populate' does not exist on type '{ _id: HistoryEntryID; userID: UserID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; media: { _id: MediaID; ... 6 more ...; sourceData: JsonObject; }; }'.
Types: src/controllers/booth.js#L35
Unused '@ts-expect-error' directive.
Types: src/controllers/booth.js#L41
Property 'id' does not exist on type '{ _id: HistoryEntryID; userID: UserID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; media: { _id: MediaID; ... 6 more ...; sourceData: JsonObject; }; }'.
Types: src/controllers/booth.js#L42
Property 'playlist' does not exist on type '{ _id: HistoryEntryID; userID: UserID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; media: { _id: MediaID; ... 6 more ...; sourceData: JsonObject; }; }'.
Types: src/controllers/booth.js#L43
Property 'playedAt' does not exist on type '{ _id: HistoryEntryID; userID: UserID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; media: { _id: MediaID; ... 6 more ...; sourceData: JsonObject; }; }'.
Types: src/controllers/booth.js#L44
Property 'user' does not exist on type '{ _id: HistoryEntryID; userID: UserID; artist: string; title: string; start: number; end: number; createdAt: Date; updatedAt: Date; media: { _id: MediaID; ... 6 more ...; sourceData: JsonObject; }; }'.
Code style: src/Uwave.js#L7
Expected a line break after this opening brace
Code style: src/Uwave.js#L7
'PostgresDialect' is defined but never used
Code style: src/Uwave.js#L7
Expected a line break before this closing brace
Code style: src/Uwave.js#L36
Unexpected space before function parentheses
Code style: src/Uwave.js#L45
Missing '()' invoking a constructor
Code style: src/Uwave.js#L47
Unexpected space before function parentheses
Code style: src/Uwave.js#L54
Expected blank line between class members
Code style: src/Uwave.js#L66
Expected blank line between class members
Code style: src/Uwave.js#L66
Unexpected space before function parentheses
Code style: src/Uwave.js#L106
Missing semicolon
Tests (20.x, 6.0)
Process completed with exit code 26.
Tests (18.x, 6.0)
The job was canceled because "_20_x_6_0" failed.
Tests (18.x, 6.0)
Process completed with exit code 26.
Tests (18.x, 7.0)
The job was canceled because "_20_x_6_0" failed.
Tests (18.x, 7.0)
Process completed with exit code 26.
Tests (lts/*, 5.0)
The job was canceled because "_20_x_6_0" failed.
Tests (lts/*, 5.0)
The operation was canceled.
Tests (20.x, 7.0)
The job was canceled because "_20_x_6_0" failed.
Tests (20.x, 7.0)
The operation was canceled.
Code style: src/HttpApi.js#L58
Missing JSDoc @Property
Code style: src/HttpApi.js#L58
Missing JSDoc @Property
Code style: src/HttpApi.js#L60
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L61
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L62
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L63
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L64
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L65
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"
Code style: src/HttpApi.js#L66
Expected no lines between tags
Code style: src/HttpApi.js#L69
Invalid JSDoc tag (preference). Replace "prop" JSDoc tag with "property"