Skip to content
Discussion options

You must be logged in to vote

Well I did solve it by adding .toString(), but can anyone enlighten me as to why this fixed it? What was the change that broke the query when it didn't need this typecast before? Should there have been some kind of error thrown?

$= dv.fileLink(dv.pages("#dailynote").where(b => b.file.name == luxon.DateTime.now().toISODate()).file.path.toString(), false, "Today")

Also when the file doesn't exist now the fileLink text is as it should be. But the link is to a file named "[]".
Is there any way to force the link to be what was given, so that the file is created when you click it?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@ttl-03
Comment options

@ThurMeijer
Comment options

@erauner12
Comment options

Answer selected by ttl-03
Comment options

You must be logged in to vote
2 replies
@ttl-03
Comment options

@securanota
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants