add savedAt and publishedAt to saveUrl api
This commit is contained in:
@ -229,6 +229,8 @@ export const enqueueParseRequest = async ({
|
||||
labels,
|
||||
locale,
|
||||
timezone,
|
||||
savedAt,
|
||||
publishedAt,
|
||||
}: {
|
||||
url: string
|
||||
userId: string
|
||||
@ -239,6 +241,8 @@ export const enqueueParseRequest = async ({
|
||||
labels?: CreateLabelInput[]
|
||||
locale?: string
|
||||
timezone?: string
|
||||
savedAt?: number // unix timestamp
|
||||
publishedAt?: number // unix timestamp
|
||||
}): Promise<string> => {
|
||||
const { GOOGLE_CLOUD_PROJECT } = process.env
|
||||
const payload = {
|
||||
@ -249,6 +253,8 @@ export const enqueueParseRequest = async ({
|
||||
labels,
|
||||
locale,
|
||||
timezone,
|
||||
savedAt,
|
||||
publishedAt,
|
||||
}
|
||||
|
||||
// If there is no Google Cloud Project Id exposed, it means that we are in local environment
|
||||
|
||||
Reference in New Issue
Block a user