number,
publicLink: string,
requestLink: string,
type: string,
firstSeen?: string
}
const currentTime = new Date().toISOString();
await postgreClient.queryArray`
INSERT INTO groups (
name,
publiclink,
requestlink,
id,
type,
firstseen)
VALUES (
'${group.groupName}',
'${group.publicLink}',
'${group.requestLink}',
${group.id},
'${group.type}',
'${currentTime}')`;
error: Uncaught (in promise) PostgresError: invalid input syntax for type timestamp: "$6"
error = new PostgresError(parseNoticeMessage(current_message));
I don't get this, especially why it is "$6"
Welcome to Java group
It's the 6th param
*facepalm* Close enough
Look up what postgres wants for a timestamp string
welcome to java group
Обсуждают сегодня