Skip to content

User avatar / roles return values #1301

User avatar / roles return values

User avatar / roles return values #1301

Triggered via push August 28, 2024 07:06
Status Failure
Total duration 1m 15s
Artifacts

ci.yml

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

Annotations

28 errors and 10 warnings
Types: src/controllers/acl.js#L32
Argument of type 'string[]' is not assignable to parameter of type 'Permission[]'.
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; }; }'.
Types: src/controllers/booth.js#L66
Type 'Promise<string | null>' is not assignable to type 'Promise<UserID | null>'.
Types: src/controllers/booth.js#L325
Property 'media' does not exist on type '{ size: number; id: PlaylistID; createdAt: Date; updatedAt: Date; userID: UserID; name: string; }'.
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
for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array
Tests (lts/*, 5.0)
Process completed with exit code 15.
Tests (20.x, 6.0)
Process completed with exit code 15.
Tests (18.x, 6.0)
The job was canceled because "lts___5_0" failed.
Tests (18.x, 6.0)
Process completed with exit code 15.
Tests (18.x, 7.0)
The job was canceled because "lts___5_0" failed.
Tests (18.x, 7.0)
Process completed with exit code 15.
Tests (20.x, 7.0)
The job was canceled because "lts___5_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"