-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2891 from omnivore-app/disable-database-query-log…
…-in-github-action disable database query logs in github action
- Loading branch information
Showing
23 changed files
with
199 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { | ||
EntitySubscriberInterface, | ||
EventSubscriber, | ||
InsertEvent, | ||
} from 'typeorm' | ||
import { Profile } from '../../entity/profile' | ||
import { createDefaultFiltersForUser } from '../../services/create_user' | ||
import { addPopularReadsForNewUser } from '../../services/popular_reads' | ||
|
||
@EventSubscriber() | ||
export class AddPopularReadsToNewUser | ||
implements EntitySubscriberInterface<Profile> | ||
{ | ||
listenTo() { | ||
return Profile | ||
} | ||
|
||
async afterInsert(event: InsertEvent<Profile>): Promise<void> { | ||
await addPopularReadsForNewUser(event.entity.user.id, event.manager) | ||
} | ||
} | ||
|
||
@EventSubscriber() | ||
export class AddDefaultFiltersToNewUser | ||
implements EntitySubscriberInterface<Profile> | ||
{ | ||
listenTo() { | ||
return Profile | ||
} | ||
|
||
async afterInsert(event: InsertEvent<Profile>): Promise<void> { | ||
await createDefaultFiltersForUser(event.manager)(event.entity.user.id) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
fe30938
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
omnivore-demo – ./
omnivore-demo.vercel.app
demo.omnivore.app
omnivore-demo-git-main-omnivore.vercel.app
omnivore-demo-omnivore.vercel.app
web-demo.omnivore.app