Skip to content

Commit 87f13f7

Browse files
committed
remove uneeded media hooks
1 parent f51a986 commit 87f13f7

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

dev/payload.config.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ const buildConfigWithMemoryDB = async () => {
5555
{
5656
slug: 'media',
5757
fields: [],
58-
hooks: {
59-
afterChange: [
60-
async ({ doc, operation, payload }) => {
61-
console.log('Media document changed: ' + operation, doc)
62-
63-
// Example: Log the stream URL if available
64-
if (doc?.stream?.url) {
65-
console.log('Stream URL:', doc.stream.url)
66-
}
67-
},
68-
],
69-
},
7058
upload: {
7159
adminThumbnail: ({ doc }) => {
7260
// Return the URL from your custom `externalUrl` field

0 commit comments

Comments
 (0)