thomasmol
thomasmol
Explore posts from servers
TTwenty
Created by thomasmol on 2/27/2025 in #❓︱help
500 error on filtering/search on REST api endpoints
i'm getting 500 errors when using the rest api and use the filter query param for e.g. people or notes
13 replies
TTwenty
Created by thomasmol on 2/21/2025 in #❓︱help
How to add Notes body through API
I saw Bocknote.js is used for the body of notes. Should we use the blocknote library to e.g. parse markdown to the a blocknote format, like described here: https://www.blocknotejs.org/docs/editor-api/converting-blocks#parsing-markdown-to-blocks or is there another way?
7 replies
TTwenty
Created by thomasmol on 2/17/2025 in #❓︱help
`useFindManyRecords for "notes" error : ApolloError: blocknote.map is not a function`
I get a the error blocknote.map is not a function when loading the notes page. Console log shows the following error: useFindManyRecords for "notes" error : ApolloError: blocknote.map is not a function any ideas?
8 replies
TTwenty
Created by thomasmol on 2/14/2025 in #❓︱help
i deleted my workspace to recreate/reset it, but now my subscription is gone
is there a way to restore it?
3 replies
TTwenty
Created by thomasmol on 8/28/2024 in #❓︱help
I built a new Railway.app template, but is it complete?
Hi there, I saw the current Railway template for Twenty is outdated (its managed by someone at Railway) so I created a new one: https://railway.app/template/nAL3hA It works for me but I did notice that e.g. the render.yaml and docker compose file build 2 services from the twentycrm/twenty docker image (server and worker?). However, my template only builds 1 service and seems to work fine. Is the 2nd service necessary? What am i missing?
13 replies
DTDrizzle Team
Created by thomasmol on 10/20/2023 in #help
Issue running migrate(): error: script "migrate" exited with code 1 (SIGHUP)
I am trying to run my migration script that should execute my migration sql files:
import { drizzle } from 'drizzle-orm/postgres-js';
import { migrate } from 'drizzle-orm/postgres-js/migrator';
import postgres from 'postgres';

async function main() {
const sql = postgres(process.env.PRIVATE_DATABASE_URL ?? '', { max: 1 });
const db = drizzle(sql);
await migrate(db, { migrationsFolder: './drizzle' });
}

main()
.catch((err) => {
console.error(err);
process.exit(1);
})
.then(() => {
process.exit(0);
});
import { drizzle } from 'drizzle-orm/postgres-js';
import { migrate } from 'drizzle-orm/postgres-js/migrator';
import postgres from 'postgres';

async function main() {
const sql = postgres(process.env.PRIVATE_DATABASE_URL ?? '', { max: 1 });
const db = drizzle(sql);
await migrate(db, { migrationsFolder: './drizzle' });
}

main()
.catch((err) => {
console.error(err);
process.exit(1);
})
.then(() => {
process.exit(0);
});
But I get this error:
$ bun src/lib/server/database/migrate.ts
ResolveMessage {
stack: "undefined",
query: undefined,
parameters: undefined,
args: [],
types: null,
code: undefined,
importKind: undefined,
level: undefined,
message: undefined,
position: undefined,
referrer: undefined,
specifier: undefined,
toJSON: [Function: toJSON],
toString: [Function: toString],
name: "ResolveMessage",
[Symbol(Symbol.toPrimitive)]: [Function: toPrimitive]
}
error: script "migrate" exited with code 1 (SIGHUP)
$ bun src/lib/server/database/migrate.ts
ResolveMessage {
stack: "undefined",
query: undefined,
parameters: undefined,
args: [],
types: null,
code: undefined,
importKind: undefined,
level: undefined,
message: undefined,
position: undefined,
referrer: undefined,
specifier: undefined,
toJSON: [Function: toJSON],
toString: [Function: toString],
name: "ResolveMessage",
[Symbol(Symbol.toPrimitive)]: [Function: toPrimitive]
}
error: script "migrate" exited with code 1 (SIGHUP)
6 replies
DTDrizzle Team
Created by thomasmol on 8/27/2023 in #help
Running migrate() in Sveltekit project
I have a migrate.ts file with the script for running migrate(), how would you typically execute this in a sveltekit project? I tried adding it to a npm script: "migrate": "ts-node src/lib/server/database/migrate.ts" but I get errors here (ERR_UNKNOWN_FILE_EXTENSION). Any ideas?
8 replies