mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
MOre debug
This commit is contained in:
parent
fbaaaeca7c
commit
5c576347a8
1 changed files with 5 additions and 3 deletions
|
|
@ -282,8 +282,7 @@ export const updateSubscriptionResolver = authorized<
|
|||
const updatedSubscription = await authTrx(async (t) => {
|
||||
const repo = t.getRepository(Subscription)
|
||||
|
||||
// update subscription
|
||||
await t.getRepository(Subscription).save({
|
||||
const dict = {
|
||||
id: input.id,
|
||||
name: input.name || undefined,
|
||||
description: input.description || undefined,
|
||||
|
|
@ -292,7 +291,10 @@ export const updateSubscriptionResolver = authorized<
|
|||
: undefined,
|
||||
lastFetchedChecksum: input.lastfetchedChecksum || undefined,
|
||||
status: input.status || undefined,
|
||||
})
|
||||
}
|
||||
console.log('saving dict:', JSON.stringify(dict))
|
||||
// update subscription
|
||||
await t.getRepository(Subscription).save(dict)
|
||||
|
||||
return repo.findOneByOrFail({
|
||||
id: input.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue