feat(parent structure): add method that return note parent structure #843
Annotations
10 errors and 1 warning
Run tests:
src/presentation/http/router/note.test.ts#L318
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/presentation/http/router/note.test.ts:318:36
|
Run tests:
src/presentation/http/router/note.test.ts#L318
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/presentation/http/router/note.test.ts:318:36
|
Run tests:
src/presentation/http/router/note.test.ts#L318
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/presentation/http/router/note.test.ts:318:36
|
Run tests:
src/presentation/http/router/note.test.ts#L472
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/presentation/http/router/note.test.ts:472:36
|
Run tests:
src/presentation/http/router/note.test.ts#L472
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/presentation/http/router/note.test.ts:472:36
|
Run tests:
src/presentation/http/router/note.test.ts#L472
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/presentation/http/router/note.test.ts:472:36
|
Run tests:
src/presentation/http/router/note.test.ts#L517
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ src/presentation/http/router/note.test.ts:517:36
|
Run tests:
src/tests/utils/database-helpers.ts#L238
SequelizeDatabaseError: column "undefined" does not exist
❯ Query.run node_modules/sequelize/src/dialects/postgres/query.js:76:25
❯ node_modules/sequelize/src/sequelize.js:650:28
❯ DatabaseHelpers.insertNoteSetting src/tests/utils/database-helpers.ts:238:5
❯ src/presentation/http/router/note.test.ts:648:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { parent: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'yZGaQ-Y5jR\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, original: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'yZGaQ-Y5jR\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'yZGaQ-Y5jR\', \'\')', parameters: {} }
|
Run tests:
src/tests/utils/database-helpers.ts#L238
SequelizeDatabaseError: column "undefined" does not exist
❯ Query.run node_modules/sequelize/src/dialects/postgres/query.js:76:25
❯ node_modules/sequelize/src/sequelize.js:650:28
❯ DatabaseHelpers.insertNoteSetting src/tests/utils/database-helpers.ts:238:5
❯ src/presentation/http/router/note.test.ts:648:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { parent: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'p_ghPfXBzD\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, original: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'p_ghPfXBzD\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'p_ghPfXBzD\', \'\')', parameters: {} }
|
Run tests:
src/tests/utils/database-helpers.ts#L238
SequelizeDatabaseError: column "undefined" does not exist
❯ Query.run node_modules/sequelize/src/dialects/postgres/query.js:76:25
❯ node_modules/sequelize/src/sequelize.js:650:28
❯ DatabaseHelpers.insertNoteSetting src/tests/utils/database-helpers.ts:238:5
❯ src/presentation/http/router/note.test.ts:648:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { parent: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'MHLp2jSTOg\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, original: { stack: 'error: column "undefined" does not exist\n at Parser.parseErrorMessage (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/notes.api/notes.api/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:191:23)', message: 'column "undefined" does not exist', length: 110, name: 'error', severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '114', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3504', routine: 'errorMissingColumn', sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'MHLp2jSTOg\', \'\')', parameters: undefined, constructor: 'Function<DatabaseError>', toString: 'Function<toString>' }, sql: 'INSERT INTO public.note_settings ("note_id", "custom_hostname", "is_public", "invitation_hash", "cover") VALUES (undefined, \'null\', true, \'MHLp2jSTOg\', \'\')', parameters: {} }
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading