mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
lint
This commit is contained in:
parent
d882c52bb5
commit
2ea5df0fcf
@ -1,13 +1,13 @@
|
||||
export async function upgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
|
||||
await queryFn(`
|
||||
UPDATE \`transactions\` AS t
|
||||
JOIN \`contributions\` AS c ON t.id = c.transaction_id
|
||||
SET t.linked_user_id = c.confirmed_by
|
||||
WHERE t.typeId = ?
|
||||
`, [1])
|
||||
await queryFn(
|
||||
`UPDATE \`transactions\` AS t
|
||||
JOIN \`contributions\` AS c ON t.id = c.transaction_id
|
||||
SET t.linked_user_id = c.confirmed_by
|
||||
WHERE t.type_id = ?`,
|
||||
[1],
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export async function downgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>) {
|
||||
await queryFn(`UPDATE \`transactions\` SET \`linked_user_id\` = NULL where \`type_id\` = ?;`, [1])
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user