Skip to content

Commit 330d4bf

Browse files
cleanup
1 parent 0cad9a4 commit 330d4bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/PowerSync/attachments/AttachmentContext.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,20 @@ public class AttachmentContext {
198198
try context.execute(
199199
sql: """
200200
INSERT OR REPLACE INTO
201-
\(table) (id, timestamp, filename, local_uri, media_type, size, state, has_synced)
201+
\(table) (id, timestamp, filename, local_uri, media_type, size, state, has_synced, meta_data)
202202
VALUES
203-
(?, ?, ?, ?, ?, ?, ?, ?)
203+
(?, ?, ?, ?, ?, ?, ?, ?, ?)
204204
""",
205205
parameters: [
206206
updatedRecord.id,
207207
updatedRecord.timestamp,
208208
updatedRecord.filename,
209-
updatedRecord.localUri as Any,
209+
updatedRecord.localUri ?? NSNull(),
210210
updatedRecord.mediaType ?? NSNull(),
211211
updatedRecord.size ?? NSNull(),
212212
updatedRecord.state.rawValue,
213213
updatedRecord.hasSynced ?? 0,
214+
updatedRecord.metaData ?? NSNull()
214215
]
215216
)
216217

0 commit comments

Comments
 (0)