markAsSynced

abstract suspend fun markAsSynced(id: String, timestamp: Long = System.currentTimeMillis())(source)

Clears needsSync and syncAction by ID and updates lastSynced, without checking which version was uploaded. An edit made during upload can lose its pending flags.

Parameters

id

The ID of the jetpack to mark as synced.

timestamp

The timestamp to set as the last synced time. Defaults to the current system time.