Skip to content

Commit

Permalink
Merge pull request #1 from nazarifard/numericalTag
Browse files Browse the repository at this point in the history
fixing issue part2: owncloud#11193
  • Loading branch information
nazarifard authored Jul 16, 2024
2 parents 7fa7e40 + 3b947ca commit 6eb7257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-client/src/webdav/constants/dav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const def = <V, T>(v: V): M<V, T> => ({
value: v,
type: null
})
const defStringOrNumber = <V>(v: V) => def<V, string|number>(v)
const defString = <V>(v: V) => def<V, string>(v)
const defNumber = <V>(v: V) => def<V, number>(v)
const defStringArray = <V>(v: V) => def<V, string[]>(v)
Expand All @@ -52,7 +53,7 @@ const DavPropertyMapping = {
ContentLength: defNumber('getcontentlength' as const),
ContentSize: defNumber('size' as const),
LastModifiedDate: defString('getlastmodified' as const),
Tags: defString('tags' as const),
Tags: defStringOrNumber('tags' as const),
Audio: {
value: 'audio',
type: null as Audio
Expand Down

0 comments on commit 6eb7257

Please sign in to comment.